1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00

Bug 516046 - NPE in AbstractDebugTextHover when hovering over undefined macro

Change-Id: If732a826801f025e929f711fa35a793545d0ed73
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
This commit is contained in:
Marc-Andre Laperle 2018-09-22 00:43:27 -04:00 committed by Marc-André Laperle
parent a561d301ca
commit 7999eab841

View file

@ -249,6 +249,9 @@ public abstract class AbstractDebugTextHover implements ICEditorTextHover, IText
IASTName name= ast.getNodeSelector(null).findEnclosingName(offset, length);
if (name != null) {
IASTImageLocation imageLoc = name.getImageLocation();
if (imageLoc == null) {
return Status.CANCEL_STATUS;
}
int kind = imageLoc.getLocationKind();
switch (kind) {
case IASTImageLocation.ARGUMENT_TO_MACRO_EXPANSION: