Skip to content

Commit

Permalink
Fixed #1000548. Added extra input check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc Bourlier committed Sep 21, 2011
1 parent 6a478cc commit 7a0aab0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public privileged aspect ClassFileProviderAspect {
stc.unit = new CompilationUnitDeclaration(stc.problemReporter, compilationResult, 0);
// not filled at this point

if (sourceTypes.length == 0) return stc.unit;
if (sourceTypes.length == 0 || sourceTypes[0] == null) return stc.unit;
SourceTypeElementInfo topLevelTypeInfo = (SourceTypeElementInfo) sourceTypes[0];
org.eclipse.jdt.core.ICompilationUnit cuHandle = topLevelTypeInfo.getHandle().getCompilationUnit();
stc.cu = (ICompilationUnit) cuHandle;
Expand Down

0 comments on commit 7a0aab0

Please sign in to comment.