1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Fixed problem where auto-unboxing may throw NPE

Change-Id: Ib7728721ce2c679565c8399722f1de50930fb3ed
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
This commit is contained in:
Jesper Eskilson 2015-03-13 19:19:35 -07:00
parent 9f27d7cc20
commit f38dd92fb6

View file

@ -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());