Author: dgeraskov
Date: 2009-12-29 05:39:57 -0500 (Tue, 29 Dec 2009)
New Revision: 19603
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5330
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2009-12-29
10:30:22 UTC (rev 19602)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/wizards/ConfigurationActor.java 2009-12-29
10:39:57 UTC (rev 19603)
@@ -137,10 +137,12 @@
for (Entry<String, EntityInfo> entry : entities.entrySet()) {
String fullyQualifiedName = entry.getValue().getFullyQualifiedName();
ICompilationUnit icu = Utils.findCompilationUnit(project, fullyQualifiedName);
- CompilationUnit cu = Utils.getCompilationUnit(icu, true);
-
- processor.setEntityInfo(entry.getValue());
- cu.accept(processor);
+ if (icu != null){
+ CompilationUnit cu = Utils.getCompilationUnit(icu, true);
+
+ processor.setEntityInfo(entry.getValue());
+ cu.accept(processor);
+ }
}
Mappings mappings = config.createMappings();