Author: scabanovich
Date: 2009-06-03 02:08:24 -0400 (Wed, 03 Jun 2009)
New Revision: 15669
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/ProjectContentProvider.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4411
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java 2009-06-03
06:08:04 UTC (rev 15668)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/AbstractSeamContentProvider.java 2009-06-03
06:08:24 UTC (rev 15669)
@@ -181,7 +181,7 @@
}
return children.toArray(new Object[0]);
}
- return null;
+ return new Object[0];
}
public Object getParent(Object element) {
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/ProjectContentProvider.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/ProjectContentProvider.java 2009-06-03
06:08:04 UTC (rev 15668)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/ProjectContentProvider.java 2009-06-03
06:08:24 UTC (rev 15669)
@@ -37,7 +37,7 @@
}
if(parentElement instanceof IProject) {
ISeamProject p = SeamCorePlugin.getSeamProject((IProject)parentElement, false);
- if (p == null) return null;
+ if (p == null) return new Object[0];
if(!processed.contains(p)) {
processed.add(p);
p.addSeamProjectListener(this);