Author: scabanovich
Date: 2007-07-20 10:51:42 -0400 (Fri, 20 Jul 2007)
New Revision: 2560
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFEntityRecognizer.java
Log:
EXIN-86 NullPointerException prevented when registering missing resources.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFEntityRecognizer.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFEntityRecognizer.java 2007-07-20
14:51:29 UTC (rev 2559)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/JSFEntityRecognizer.java 2007-07-20
14:51:42 UTC (rev 2560)
@@ -10,7 +10,6 @@
******************************************************************************/
package org.jboss.tools.jsf.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.jsf.JSFModelPlugin;
@@ -20,8 +19,8 @@
static {
try {
Class<?> c = JSFEntityRecognizer.class;
- XMLEntityResolver.registerPublicEntity(DOC_PUBLICID,
FileLocator.resolve(c.getResource("/meta/web-facesconfig_1_0.dtd")).toString());
- XMLEntityResolver.registerPublicEntity(DOC_PUBLICID_11,
FileLocator.resolve(c.getResource("/meta/web-facesconfig_1_1.dtd")).toString());
+ XMLEntityResolver.registerPublicEntity(DOC_PUBLICID, c,
"/meta/web-facesconfig_1_0.dtd");
+ XMLEntityResolver.registerPublicEntity(DOC_PUBLICID_11, c,
"/meta/web-facesconfig_1_1.dtd");
} catch (Exception e) {
JSFModelPlugin.getPluginLog().logError(e);
}
Show replies by date