[libpostgresql-jdbc-java] 86/93: NullPointerException in AbstractJdbc2DatabaseMetaData.getUDTs Fix from Elizabeth Chatman

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 10:18:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to annotated tag REL9_3_1102
in repository libpostgresql-jdbc-java.

commit f50fb0c82931ef2e716e34d232af6625599757b0
Author: Dave Cramer <davecramer at gmail.com>
Date:   Fri Jul 4 07:45:02 2014 -0400

    NullPointerException in AbstractJdbc2DatabaseMetaData.getUDTs
    Fix from Elizabeth Chatman
---
 org/postgresql/jdbc2/TypeInfoCache.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/org/postgresql/jdbc2/TypeInfoCache.java b/org/postgresql/jdbc2/TypeInfoCache.java
index a68e0c0..dddd131 100644
--- a/org/postgresql/jdbc2/TypeInfoCache.java
+++ b/org/postgresql/jdbc2/TypeInfoCache.java
@@ -241,8 +241,9 @@ public class TypeInfoCache implements TypeInfo {
         }
         rs.close();
 
-        _pgNameToSQLType.put(pgTypeName, type);
-
+        if ( pgTypeName != null ){            
+            _pgNameToSQLType.put(pgTypeName, type);
+        }
         return type.intValue();
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list