Author: dgeraskov
Date: 2012-03-23 07:14:31 -0400 (Fri, 23 Mar 2012)
New Revision: 39792
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java
Log:
https://issues.jboss.org/browse/JBIDE-11378
NPE when remove package declaration from package-info.java
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java 2012-03-23
10:54:57 UTC (rev 39791)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/HibernateJpaProject.java 2012-03-23
11:14:31 UTC (rev 39792)
@@ -131,7 +131,7 @@
return new TransformationIterable<JavaResourcePackage,
String>(this.getInternalMappedSourceJavaResourcePackages()) {
@Override
protected String transform(JavaResourcePackage jrpPackage) {
- return jrpPackage.getName();
+ return jrpPackage == null ? null : jrpPackage.getName();
}
};
}