null is not a valid argument. So some sort of RuntimeException will be thrown. Likely NPE but could also be IllegalArgumentException depending upon how CM is implemented. --
BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [email protected] office: +1 386 848 1781 mobile: +1 386 848 3788 From: Ikuo Yamasaki <[email protected]> To: OSGi Developer Mail List <[email protected]> Date: 2009/08/19 21:46 Subject: [osgi-dev] conf.update(null) Sent by: [email protected] Hi all, Is the following my understanding correct ? ------------------ The caller of update(Dictionary props) method of Configuraion object should confirm props is not null in advance or try/catch NullPointerException. In other words, the caller Should expect update(null) throws NullPointerException. ------------------ Similar argument I found before AFAIK was BundleContext#getService(ServiceReference reference) is called with the reference of null(NullPointerException will be thrown). Generally speaking, the caller should expect NullPointerException in case that the argument is Object and javadoc doesn't describe anything in case of null. Best regards, --------------------- NTT Cyber Solutions Laboratories Ikuo YAMASAKI E-mail: [email protected] TEL +81-46-859-8537 FAX +81-46-855-1282 _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
