aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2013-03-14 11:33:42 -0400
committerTom Schindl2013-03-14 11:33:42 -0400
commit10f22b23d4671eaadcf935f892263cd3594b544e (patch)
tree58a8503dddf71ae0e1d57d4a104d3917c5e8194c
parent11e96915b25278153c641799fa54c1c89e89e54d (diff)
downloadorg.eclipse.nebula-10f22b23d4671eaadcf935f892263cd3594b544e.zip
org.eclipse.nebula-10f22b23d4671eaadcf935f892263cd3594b544e.tar.gz
org.eclipse.nebula-10f22b23d4671eaadcf935f892263cd3594b544e.tar.xz
Bug 403355 - CDateTimeObservableValue deal with null
-rw-r--r--widgets/cdatetime/org.eclipse.nebula.jface.cdatetime/src/org/eclipse/nebula/jface/cdatetime/CDateTimeObservableValue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/cdatetime/org.eclipse.nebula.jface.cdatetime/src/org/eclipse/nebula/jface/cdatetime/CDateTimeObservableValue.java b/widgets/cdatetime/org.eclipse.nebula.jface.cdatetime/src/org/eclipse/nebula/jface/cdatetime/CDateTimeObservableValue.java
index 18f53aa..d6c30ea 100644
--- a/widgets/cdatetime/org.eclipse.nebula.jface.cdatetime/src/org/eclipse/nebula/jface/cdatetime/CDateTimeObservableValue.java
+++ b/widgets/cdatetime/org.eclipse.nebula.jface.cdatetime/src/org/eclipse/nebula/jface/cdatetime/CDateTimeObservableValue.java
@@ -91,7 +91,7 @@ public class CDateTimeObservableValue extends AbstractObservableValue {
}
protected void doSetValue(Object value) {
- if (value instanceof Date && !dateTime.isDisposed()) {
+ if ((value instanceof Date || value == null) && !dateTime.isDisposed()) {
Date oldValue;
Date newValue;
try {