Author: scabanovich
Date: 2007-07-20 10:51:15 -0400 (Fri, 20 Jul 2007)
New Revision: 2558
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java
Log:
EXIN-86 NullPointerException prevented when registering missing resources.
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java 2007-07-20
14:51:01 UTC (rev 2557)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java 2007-07-20
14:51:15 UTC (rev 2558)
@@ -10,7 +10,6 @@
******************************************************************************/
package org.jboss.tools.seam.xml.components.model;
-import org.eclipse.core.runtime.FileLocator;
import org.jboss.tools.common.model.loaders.*;
import org.jboss.tools.common.xml.XMLEntityResolver;
import org.jboss.tools.seam.xml.SeamXMLPlugin;
@@ -20,7 +19,7 @@
static {
try {
Class<?> c = SeamComponentsEntityRecognizer.class;
- XMLEntityResolver.registerPublicEntity(PUBLIC_ID_11,
FileLocator.resolve(c.getResource("/meta/components-1.1.dtd")).toString());
+ XMLEntityResolver.registerPublicEntity(PUBLIC_ID_11, c,
"/meta/components-1.1.dtd");
} catch (Exception e) {
SeamXMLPlugin.log(e);
}
Show replies by date