Accesing a singleton class which reads propertyfile in another module
807591Apr 5 2008 — edited Apr 6 2008hi , Here i have one question?
i read one propertyfile using class.getClassLoader().getResourceAsStream("PSTest.preoperties); in a class, that is singleton...and located module1(property file located in this module only)..
now i have to access that singleton class in Module2 and module 2 has module1.jar refering in classpath.
when i try to call singleton.getUsername(); now i'm getting java.lang.NullPointerException..
Please suggest me how to fix this...