mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-12-22 08:48:54 +00:00
[FIX] The Properties is always null
This commit is contained in:
parent
567a92f158
commit
20de5a0d5d
@ -37,7 +37,7 @@ public class Configuration {
|
|||||||
* Singleton constructor
|
* Singleton constructor
|
||||||
*/
|
*/
|
||||||
private Configuration() {
|
private Configuration() {
|
||||||
Properties config = new Properties();
|
config = new Properties();
|
||||||
|
|
||||||
// Default values
|
// Default values
|
||||||
config.setProperty("SHOW_SOCIAL_BUTTONS", "off");
|
config.setProperty("SHOW_SOCIAL_BUTTONS", "off");
|
||||||
@ -45,8 +45,7 @@ public class Configuration {
|
|||||||
// End of default values
|
// End of default values
|
||||||
|
|
||||||
try {
|
try {
|
||||||
InputStream is = Thread.currentThread().getContextClassLoader().
|
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("config.properties");
|
||||||
getResourceAsStream("config.properties");
|
|
||||||
if (is != null) {
|
if (is != null) {
|
||||||
config.load(is);
|
config.load(is);
|
||||||
is.close();
|
is.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user