Commits

tbrugz committed 04c1ddf

grabber: java serializer & jaxb: bugfix

  • Participants
  • Parent commits fd61930

Comments (0)

Files changed (2)

src/tbrugz/sqldump/JAXBSchemaXMLSerializer.java

 		String fileInputStr = prop.getProperty(propertiesPrefix+PROP_XMLSERIALIZATION_JAXB_INFILE);
 		if(fileInputStr==null) {
 			fileInputStr = prop.getProperty(propertiesPrefix+PROP_XMLSERIALIZATION_JAXB_INRESOURCE);
-			fileInput = new File(JAXBSchemaXMLSerializer.class.getResource(fileInputStr).getFile());
+			if(fileInputStr!=null) {
+				fileInput = new File(JAXBSchemaXMLSerializer.class.getResource(fileInputStr).getFile());
+			}
 		}
 		else {
 			fileInput = new File(fileInputStr);

src/tbrugz/sqldump/SchemaSerializer.java

 		String fileInputStr = prop.getProperty(PROP_SERIALIZATION_INFILE);
 		if(fileInputStr==null) {
 			fileInputStr = prop.getProperty(PROP_SERIALIZATION_INRESOURCE);
-			fileInput = new File(JAXBSchemaXMLSerializer.class.getResource(fileInputStr).getFile());
+			if(fileInputStr!=null) {
+				fileInput = new File(JAXBSchemaXMLSerializer.class.getResource(fileInputStr).getFile());
+			}
 		}
 		else {
 			fileInput = new File(fileInputStr);