Project

General

Profile

Revision 6732

close prepared statement only if not null
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5562

View differences:

src/edu/ucsb/nceas/metacat/admin/upgrade/UpgradeNodeDataDatetime.java
126 126
		            	// do nothing, was not a valid date
127 127
		            	//e.printStackTrace();
128 128
		            } finally {
129
		            	pstmt.close();
129
		            	if (pstmt != null) {
130
		            		pstmt.close();
131
		            	}
130 132
		            }
131 133
		        }
132 134
		        log.warn("Table: " + tableName + " complete. " + count + " values converted.");

Also available in: Unified diff