mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
NPE in "CVlaue.isUnsigned". Check if the type of the parent variable is null.
This commit is contained in:
parent
52e7f87d5e
commit
72b2f7aa1e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-10-25 Mikhail Khodjaiants
|
||||||
|
NPE in "CVlaue.isUnsigned". Check if the type of the parent variable is null.
|
||||||
|
* CValue.java
|
||||||
|
|
||||||
2004-10-25 David Inglis
|
2004-10-25 David Inglis
|
||||||
Deprecated environment launch constent in favor of the constant provided by the debug.core.
|
Deprecated environment launch constent in favor of the constant provided by the debug.core.
|
||||||
* src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java
|
* src/org/eclipse/cdt/debug/core/ICDTLaunchConfigurationConstants.java
|
||||||
|
|
|
@ -418,6 +418,7 @@ public class CValue extends AbstractCValue {
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
try {
|
try {
|
||||||
ICType type = getParentVariable().getType();
|
ICType type = getParentVariable().getType();
|
||||||
|
if ( type != null )
|
||||||
result = type.isUnsigned();
|
result = type.isUnsigned();
|
||||||
}
|
}
|
||||||
catch( DebugException e ) {
|
catch( DebugException e ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue