Community
Participate
Working Groups
I20050405-0800 ! JDT/Core & JDT/UI from HEAD - opened OpenTypeSelectionDialog. The workspace has binary plug-ins imported from M5. Thread [Worker-1] (Suspended (exception NullPointerException)) DefaultBindingResolver.resolveName(Name) line: 910 SimpleName(Name).resolveBinding() line: 86 SemanticToken.getBinding() line: 40 SemanticHighlightings$StaticFieldHighlighting.consumes(SemanticToken) line: 261 SemanticHighlightingReconciler$PositionCollector.visit(SimpleName) line: 79 SimpleName.accept0(ASTVisitor) line: 147 SimpleName(ASTNode).accept(ASTVisitor) line: 2450 QualifiedName(ASTNode).acceptChild(ASTVisitor, ASTNode) line: 2497 QualifiedName.accept0(ASTVisitor) line: 169 QualifiedName(ASTNode).accept(ASTVisitor) line: 2450 QualifiedName(ASTNode).acceptChild(ASTVisitor, ASTNode) line: 2497 QualifiedName.accept0(ASTVisitor) line: 169 QualifiedName(ASTNode).accept(ASTVisitor) line: 2450 QualifiedName(ASTNode).acceptChild(ASTVisitor, ASTNode) line: 2497 QualifiedName.accept0(ASTVisitor) line: 169 QualifiedName(ASTNode).accept(ASTVisitor) line: 2450 QualifiedName(ASTNode).acceptChild(ASTVisitor, ASTNode) line: 2497 QualifiedName.accept0(ASTVisitor) line: 169 QualifiedName(ASTNode).accept(ASTVisitor) line: 2450 QualifiedName(ASTNode).acceptChild(ASTVisitor, ASTNode) line: 2497 QualifiedName.accept0(ASTVisitor) line: 169 QualifiedName(ASTNode).accept(ASTVisitor) line: 2450 PackageDeclaration(ASTNode).acceptChild(ASTVisitor, ASTNode) line: 2497 PackageDeclaration.accept0(ASTVisitor) line: 226 PackageDeclaration(ASTNode).accept(ASTVisitor) line: 2450 CompilationUnit(ASTNode).acceptChild(ASTVisitor, ASTNode) line: 2497 CompilationUnit.accept0(ASTVisitor) line: 297 CompilationUnit(ASTNode).accept(ASTVisitor) line: 2450 SemanticHighlightingReconciler.reconcilePositions(ASTNode[]) line: 244 SemanticHighlightingReconciler.reconciled(CompilationUnit, boolean, IProgressMonitor) line: 203 SemanticHighlightingReconciler$1.run(IProgressMonitor) line: 360 Worker.run() line: 67
Dirk - do you have precise steps to reproduce ?
What I did is the following: - create new workspace and imported all plug-ins from M5a as binary plug-ins - openen OpenTypeSelectionDialog using the Open Type dialog
I could not reproduce. I put a breakpoint on java.lang.NullPointerException and it was never hit. Is it 100% reproducable for you?
I can still reproduce this in my test workspace.
The NPE happens because this.scope == null. The importReferences == "org.eclipse.jdt.internal.ui.dialogs.*"
Could you please zip your workspace and put it somewhere I can get it? Thanks.
I tried with linked binary folders and I could not reproduce. I debugged and the scope is not null when the import references are resolved. I used the default preferences. Could you have a specific preferences set that could cause this issue?
Created attachment 19821 [details] My preferences
Could not reproduce even if I use your preferences. I don't see how the scope can be null. How did you get the stacktrace since this exception should have been ignored?
Please try to reproduce without using linked projects. If you can reproduce, please send me your workspace.
I got the stack trace since I catch all NPEs. I will give it a try with a full binary imported workspace. However, this may take some time.
I am leaving in vacations at the end of the week. So this is the last week to see this fixed for M7.
Dirk, did you get it lately? If yes, please provide a test case. I could not reproduce it.
The OpenTypeSelectionDialog is gone now ;-). I haven't seen it since then. I will reopen if I see it again.
Close as WORKSFORME. Reopen if you get it again.