Author: vyemialyanchyk
Date: 2009-03-06 15:03:58 -0500 (Fri, 06 Mar 2009)
New Revision: 14090
Modified:
branches/jbosstools-3.0.x/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
Log:
JBIDE-3967
Modified:
branches/jbosstools-3.0.x/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
===================================================================
---
branches/jbosstools-3.0.x/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2009-03-06
19:59:04 UTC (rev 14089)
+++
branches/jbosstools-3.0.x/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2009-03-06
20:03:58 UTC (rev 14090)
@@ -279,6 +279,9 @@
public static String getReturnIdentifier(MethodDeclaration node) {
String res = null;
+ if (node.getBody() == null) {
+ return res;
+ }
List bodyStatemants = node.getBody().statements();
Iterator it = bodyStatemants.iterator();
for ( ; it.hasNext(); ) {