We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5d9f46 commit 52d7d9dCopy full SHA for 52d7d9d
1 file changed
framework/src/main/java/org/tron/core/config/args/Args.java
@@ -342,6 +342,10 @@ private static String getCommitIdAbbrev() {
342
try {
343
InputStream in = Thread.currentThread()
344
.getContextClassLoader().getResourceAsStream("git.properties");
345
+ if (in == null) {
346
+ logger.warn("git.properties not found on classpath");
347
+ return "";
348
+ }
349
properties.load(in);
350
} catch (IOException e) {
351
logger.warn("Load resource failed,git.properties {}", e.getMessage());
0 commit comments