[FIX] The Properties is always null
This commit is contained in:
@@ -37,7 +37,7 @@ public class Configuration {
|
||||
* Singleton constructor
|
||||
*/
|
||||
private Configuration() {
|
||||
Properties config = new Properties();
|
||||
config = new Properties();
|
||||
|
||||
// Default values
|
||||
config.setProperty("SHOW_SOCIAL_BUTTONS", "off");
|
||||
@@ -45,8 +45,7 @@ public class Configuration {
|
||||
// End of default values
|
||||
|
||||
try {
|
||||
InputStream is = Thread.currentThread().getContextClassLoader().
|
||||
getResourceAsStream("config.properties");
|
||||
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("config.properties");
|
||||
if (is != null) {
|
||||
config.load(is);
|
||||
is.close();
|
||||
|
||||
Reference in New Issue
Block a user