mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 337284 - NPE in debug expression hover
This commit is contained in:
parent
b9d2bc1e13
commit
2aa98ad07f
1 changed files with 10 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2010 Nokia Corporation and others.
|
||||
* Copyright (c) 2009, 2011 Nokia 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
|
||||
|
@ -134,6 +134,7 @@ abstract public class AbstractDsfDebugTextHover extends AbstractDebugTextHover i
|
|||
try {
|
||||
GetExpressionValueQuery query = new GetExpressionValueQuery(frame, expression, dsfServicesTracker);
|
||||
DsfSession session = DsfSession.getSession(sessionId);
|
||||
if (session != null) {
|
||||
session.getExecutor().execute(query);
|
||||
try {
|
||||
FormattedValueDMData data = query.get();
|
||||
|
@ -141,6 +142,7 @@ abstract public class AbstractDsfDebugTextHover extends AbstractDebugTextHover i
|
|||
return data.getFormattedValue();
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
dsfServicesTracker.dispose();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue