Commits

tbrugz committed 6cfa869

model: Column fixes

  • Participants
  • Parent commits 7b42d71

Comments (0)

Files changed (1)

src/tbrugz/sqldump/dbmodel/Column.java

 		}
 		
 		public static boolean usePrecision(String colType) {
+			if(colType==null) { return false; }
 			colType = colType.toUpperCase();
 			if(doNotUsePrecision.contains(colType)) { return false; }
 			return !"false".equals(dbmsSpecificProps.getProperty("type."+colType+".useprecision"));
 	
 	//XXX: should be 'default'?
 	public static String getColumnDesc(Column c) {
-		String colType = c.type.trim();
+		String colType = c.type!=null ? c.type.trim() : null;
 		
 		boolean usePrecision = ColTypeUtil.usePrecision(colType);