paradigmatic / Configrity

Simple, immutable and flexible configuration library for scala.
Other
132 stars 19 forks source link

Fix issue in Configuration.loadResource #8

Closed mkonicek closed 12 years ago

mkonicek commented 12 years ago

Configuration.loadResource("nonExistingFileName") throws NullPointerException from java.io.Reader.

This fixes it to throw FileNotFoundException, which is the same as when using Configuration.load().

See getResourceAsStream.

paradigmatic commented 12 years ago

Thank you for your contribution. It make sense to remove that NullPointerException.