Author: vyemialyanchyk
Date: 2009-03-06 12:05:34 -0500 (Fri, 06 Mar 2009)
New Revision: 14084
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
Log:
add one more npe check
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2009-03-06
17:04:34 UTC (rev 14083)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2009-03-06
17:05:34 UTC (rev 14084)
@@ -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(); ) {
Show replies by date