diff options
author | Michael Rennie | 2009-05-11 18:13:54 +0000 |
---|---|---|
committer | Michael Rennie | 2009-05-11 18:13:54 +0000 |
commit | 5b0a5d2c3f7393cf01f5fa3135f383980c22094f (patch) | |
tree | 6f774dca578890f98c2666f3a06511092c0968e2 | |
parent | 8cfcba78c64657b419235c450e8f07c8454da421 (diff) | |
download | eclipse.jdt.debug-5b0a5d2c3f7393cf01f5fa3135f383980c22094f.tar.gz eclipse.jdt.debug-5b0a5d2c3f7393cf01f5fa3135f383980c22094f.tar.xz eclipse.jdt.debug-5b0a5d2c3f7393cf01f5fa3135f383980c22094f.zip |
Bug 275486 NPE while debugging.
-rw-r--r-- | org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java index 8e286ffae..a6189dbf4 100644 --- a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java +++ b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/engine/ASTInstructionCompiler.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -473,6 +473,9 @@ public class ASTInstructionCompiler extends ASTVisitor { * Returns true if a storeInstruction() is needed after visiting the expression */ private boolean checkAutoBoxing(ITypeBinding valueBinding, ITypeBinding requestedBinding) { + if (valueBinding == null) { + return false; // unresolved + } if (valueBinding.isPrimitive() == requestedBinding.isPrimitive()) { return false; } |