Fix Nullpointer in new JDBC code.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 11 Jul 2005 23:41:29 +0000 (23:41 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 11 Jul 2005 23:41:29 +0000 (23:41 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1721 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/attrresolv/provider/JDBCDataConnector.java

index d78afc5..3ce59a2 100644 (file)
@@ -621,7 +621,8 @@ class DefaultStatementCreator implements JDBCStatementCreator {
 
        public DefaultStatementCreator(Element conf) throws JDBCStatementCreatorException {
 
-               if (conf.getAttribute("numberOfParams") != null && !(conf.getAttribute("numberOfParams").equals(""))) {
+               if (conf != null && conf.getAttribute("numberOfParams") != null
+                               && !(conf.getAttribute("numberOfParams").equals(""))) {
                        try {
                                numberOfParams = Integer.parseInt(conf.getAttribute("numberOfParams"));
                                if (numberOfParams < 0) { throw new NumberFormatException(