Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Eskilson2015-03-14 02:19:35 +0000
committerJesper Eskilson2015-03-28 09:15:35 +0000
commitf38dd92fb689f1a70b0e882d20bd665f5346bd02 (patch)
treeb4b82bc4f72db129adc39d9540dd8d6404983e47 /dsf/org.eclipse.cdt.examples.dsf
parent9f27d7cc2062b11e021043497e43f60de926fdeb (diff)
downloadorg.eclipse.cdt-f38dd92fb689f1a70b0e882d20bd665f5346bd02.tar.gz
org.eclipse.cdt-f38dd92fb689f1a70b0e882d20bd665f5346bd02.tar.xz
org.eclipse.cdt-f38dd92fb689f1a70b0e882d20bd665f5346bd02.zip
Fixed problem where auto-unboxing may throw NPE
Change-Id: Ib7728721ce2c679565c8399722f1de50930fb3ed Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
Diffstat (limited to 'dsf/org.eclipse.cdt.examples.dsf')
-rw-r--r--dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java
index 22ed08b0db..e84c836876 100644
--- a/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java
+++ b/dsf/org.eclipse.cdt.examples.dsf/src/org/eclipse/cdt/examples/dsf/timers/TriggerCellModifier.java
@@ -101,7 +101,7 @@ public class TriggerCellModifier implements ICellModifier {
Shell shell = getShell();
if (shell == null) return;
- Integer intValue = null;
+ Integer intValue = 0;
if (value instanceof String) {
try {
intValue = new Integer(((String)value).trim());

Back to the top