Author: rob.stryker(a)jboss.com
Date: 2008-02-12 14:50:58 -0500 (Tue, 12 Feb 2008)
New Revision: 6284
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
Log:
JBIDE-1774 - null check
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2008-02-12
19:44:01 UTC (rev 6283)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/extensions/descriptors/XPathModel.java 2008-02-12
19:50:58 UTC (rev 6284)
@@ -276,6 +276,8 @@
Path p = (Path)rtToPortsFile.get(ajbsr.getId());
if( p == null ) return;
URL url = FileLocator.find(JBossServerCorePlugin.getDefault().getBundle(), p, null);
+ if( url == null ) return;
+
Properties pr = new Properties();
try {
pr.load(url.openStream());