Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-01-17 17:10:18 +0000
committerEike Stepper2008-01-17 17:10:18 +0000
commit37cf629f28d73ed1433c53431062787c124b3ede (patch)
tree1c04014ff1e468768fc86b0424da4ef49285717a /plugins/org.eclipse.net4j.db
parentdd511930a3075d917b4c744277ffa6d34c9050a3 (diff)
downloadcdo-37cf629f28d73ed1433c53431062787c124b3ede.tar.gz
cdo-37cf629f28d73ed1433c53431062787c124b3ede.tar.xz
cdo-37cf629f28d73ed1433c53431062787c124b3ede.zip
[214459] Crash recovery occurs without crash
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214459
Diffstat (limited to 'plugins/org.eclipse.net4j.db')
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
index 52ec022b8c..e9c26609c0 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
@@ -147,6 +147,10 @@ public final class DBUtil
{
return (Integer)number;
}
+ else if (number == null)
+ {
+ return 0;
+ }
throw new DBException("Not an integer number: " + number);
}
@@ -158,6 +162,10 @@ public final class DBUtil
{
return (Long)number;
}
+ else if (number == null)
+ {
+ return 0L;
+ }
throw new DBException("Not a long number: " + number);
}

Back to the top