fixed NPE
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / sql / SQLStandardResultSetResults.java
index 7358b26..1a21e00 100644 (file)
@@ -108,7 +108,7 @@ public class SQLStandardResultSetResults extends SQLResultSetResults implements
                                                        value = set.getString(i);
                                                }
                                        }
-                                       if (value == null) {
+                                       if (value == null && !set.wasNull()) {
                                                value = set.getString(i);
                                        }
                                        row.add(value == null || set.wasNull() ? "<NULL>" : value); //$NON-NLS-1$