mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Fix for bug 79678: NPE in Expression.
This commit is contained in:
parent
c5cef415ab
commit
c52e89c95f
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-12-08 Mikhail Khodjaiants
|
||||
Fix for bug 79678: NPE in Expression.
|
||||
* CExpression.java
|
||||
|
||||
2004-12-01 Mikhail Khodjaiants
|
||||
New fix for bug 80034: Expressions view does not display correct no. of elements in array.
|
||||
* CValueFactory.java
|
||||
|
|
|
@ -33,6 +33,8 @@ import org.eclipse.debug.core.model.IValue;
|
|||
*/
|
||||
public class CExpression extends CVariable implements IExpression {
|
||||
|
||||
private String fText;
|
||||
|
||||
private ICDIExpression fCDIExpression;
|
||||
|
||||
private CStackFrame fStackFrame;
|
||||
|
@ -46,7 +48,8 @@ public class CExpression extends CVariable implements IExpression {
|
|||
*/
|
||||
public CExpression( CStackFrame frame, ICDIExpression cdiExpression, ICDIVariableDescriptor varObject ) {
|
||||
super( frame, varObject );
|
||||
setFormat( CVariableFormat.getFormat( CDebugCorePlugin.getDefault().getPluginPreferences().getInt( ICDebugConstants.PREF_DEFAULT_EXPRESSION_FORMAT ))) ;
|
||||
setFormat( CVariableFormat.getFormat( CDebugCorePlugin.getDefault().getPluginPreferences().getInt( ICDebugConstants.PREF_DEFAULT_EXPRESSION_FORMAT ) ) );
|
||||
fText = cdiExpression.getExpressionText();
|
||||
fCDIExpression = cdiExpression;
|
||||
fStackFrame = frame;
|
||||
}
|
||||
|
@ -55,7 +58,7 @@ public class CExpression extends CVariable implements IExpression {
|
|||
* @see org.eclipse.debug.core.model.IExpression#getExpressionText()
|
||||
*/
|
||||
public String getExpressionText() {
|
||||
return fCDIExpression.getExpressionText();
|
||||
return fText;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue