Author: yzhishko
Date: 2010-05-04 10:52:04 -0400 (Tue, 04 May 2010)
New Revision: 21890
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java
Log:
Fixed VPE tests failing.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java 2010-05-04
14:47:34 UTC (rev 21889)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2SourceValidator.java 2010-05-04
14:52:04 UTC (rev 21890)
@@ -61,7 +61,11 @@
if (project == null) {
return;
}
- String filePath = helper.getURIs()[0];
+ String[] uris = helper.getURIs();
+ if (uris == null || uris.length < 1) {
+ return;
+ }
+ String filePath = uris[0];
if (filePath == null) {
return;
}
@@ -101,7 +105,11 @@
if (project == null) {
return;
}
- String filePath = helper.getURIs()[0];
+ String[] uris = helper.getURIs();
+ if (uris == null || uris.length < 1) {
+ return;
+ }
+ String filePath = uris[0];
if (filePath == null) {
return;
}
Show replies by date