Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2014-11-25 07:43:30 +0000
committerAnton Leherbauer2014-11-25 07:43:30 +0000
commite358dcc6a09857bc070e852365c837846b3c1394 (patch)
tree0050f3aeba663894d73b9c6135392d175b5b8fc2
parent2ff1adbb7e1ca0479bcdafe645f887cd7e232f12 (diff)
downloadorg.eclipse.tcf-e358dcc6a09857bc070e852365c837846b3c1394.tar.gz
org.eclipse.tcf-e358dcc6a09857bc070e852365c837846b3c1394.tar.xz
org.eclipse.tcf-e358dcc6a09857bc070e852365c837846b3c1394.zip
TCF Debugger: Fix NPE in case of unsupported FP format
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java
index 753f282a5..e697b5073 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNumberFormat.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2013 Wind River Systems, Inc. and others.
+ * Copyright (c) 2008, 2014 Wind River Systems, Inc. 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
@@ -270,7 +270,7 @@ public class TCFNumberFormat {
exponent -= 16383; // Exponent bias
break;
default:
- return null;
+ return "Unsupported floating point format";
}
if (nan) {
for (int i = 0; i < arr.length; i++) {

Back to the top