fracpete / jcamp-dx

Reference implemention of the IUPAC JCAMP-DX spectroscopy data standard. Fork of https://sourceforge.net/projects/jcamp-dx/
Other
7 stars 7 forks source link

NoteMarshallerFactory.initFactory() does not find notes.propterties #1

Closed cheminux closed 8 years ago

cheminux commented 8 years ago

In the classfunction NoteMarshallerFactory.initFactory() the DEFAULT_MARSHALLER is not set since the notes.properties load by: ... is = this.getClass().getClassLoader().getResourceAsStream("notes.properties"); if (is == null) return; ....

is alway null. This leads to a nullpointer in the NoteMarshallerFactory.findByDescriptor().

Regards Sven

fracpete commented 8 years ago

NoteMarshallerFactory.DEFAULT_MARSHALLER now gets initialized with DefaultNoteMarshaller class by default. Can you please confirm that this fixes your problem?

cheminux commented 8 years ago

Yes I can confirm that the problem is fixed.

Thanks for the fast response!