qasta / gettext-commons

Automatically exported from code.google.com/p/gettext-commons
GNU Lesser General Public License v2.1
0 stars 0 forks source link

NPE when I18n instance is requested for classes loaded by bootsrap classloader #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Class.getClassLoader() can return null in certain cases, which causes a 
NPE during lookup:

java.lang.NullPointerException
    at 
org.xnap.commons.i18n.I18nFactory.readFromPropertiesFile(I18nFactory.java:251)
    at 
org.xnap.commons.i18n.I18nFactory.getI18n(I18nFactory.java:208)
    at 
org.xnap.commons.i18n.I18nFactory.getI18n(I18nFactory.java:161)
    at 
org.xnap.commons.i18n.I18nFactory.getI18n(I18nFactory.java:138)
    at 
org.xnap.commons.i18n.I18nFactory.getI18n(I18nFactory.java:146)
[...]

Original issue reported on code.google.com by steffen....@googlemail.com on 6 Aug 2007 at 6:49

GoogleCodeExporter commented 9 years ago
Committed fix to CVS.

Original comment by steffen....@googlemail.com on 22 Aug 2007 at 3:41