mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Check if the pointer value is not null before pass it to the address factory.
This commit is contained in:
parent
cf15755c35
commit
9969ce47df
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-11-22 Mikhail Khodjaiants
|
||||
Check if the pointer value is not null before pass it to the address factory.
|
||||
* CValue.java
|
||||
|
||||
2004-11-18 Mikhail Khodjaiants
|
||||
Worker threads can try to evaluate expressions on the stack frames that
|
||||
have already been disposed. A flag is added to identify that the stack
|
||||
|
|
|
@ -361,6 +361,9 @@ public class CValue extends AbstractCValue {
|
|||
private String getPointerValueString( ICDIPointerValue value ) throws CDIException {
|
||||
//TODO:IPF_TODO Workaround to solve incorrect handling of structures referenced by pointers or references
|
||||
IAddressFactory factory = ((CDebugTarget)getDebugTarget()).getAddressFactory();
|
||||
BigInteger pv = value.pointerValue();
|
||||
if ( pv == null )
|
||||
return ""; //$NON-NLS-1$
|
||||
IAddress address = factory.createAddress( value.pointerValue() );
|
||||
if ( address == null )
|
||||
return ""; //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue