Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlena Laskavaia2009-03-17 17:09:24 -0400
committerAlena Laskavaia2009-03-17 17:09:24 -0400
commit6d468cffb7c90eece92ae2c31522f177f782a421 (patch)
treeb4f2de38dd5acd3f5ca7767616e17b14989c1288
parent8193424ce260d9050c74c6d2127e37a8657f0d94 (diff)
downloadorg.eclipse.cdt-6d468cffb7c90eece92ae2c31522f177f782a421.tar.gz
org.eclipse.cdt-6d468cffb7c90eece92ae2c31522f177f782a421.tar.xz
org.eclipse.cdt-6d468cffb7c90eece92ae2c31522f177f782a421.zip
[207549] - fixed exception in ArrayValue calculation
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java
index 6a562e42494..8674fdf4b13 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/type/ArrayValue.java
@@ -103,6 +103,10 @@ public class ArrayValue extends DerivedValue implements ICDIArrayValue, ICDIPoin
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIPointerValue#pointerValue()
*/
public BigInteger pointerValue() throws CDIException {
- return new BigInteger(hexAddress, 16);
+ try {
+ return new BigInteger(hexAddress, 16);
+ } catch (Exception e) {
+ return null;
+ }
}
}

Back to the top