Author: scabanovich
Date: 2007-07-20 10:51:58 -0400 (Fri, 20 Jul 2007)
New Revision: 2561
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java
Log:
EXIN-86 NullPointerException prevented when registering missing resources.
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java 2007-07-20
14:51:42 UTC (rev 2560)
+++
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/MetaLibLoader.java 2007-07-20
14:51:58 UTC (rev 2561)
@@ -28,7 +28,7 @@
static {
try {
Class<?> c = MetaLibLoader.class;
- XMLEntityResolver.registerPublicEntity(DOC_PUBLICID,
FileLocator.resolve(c.getResource("/meta/meta.dtd")).toString());
+ XMLEntityResolver.registerPublicEntity(DOC_PUBLICID, c,
"/meta/meta.dtd");
} catch (Exception e) {
ModelPlugin.getPluginLog().logError(e);
}
Show replies by date