НПЭ в невозможном месте ⇐ JAVA
-
Гость
НПЭ в невозможном месте
I'm having this super weird NPE:
Technical Exception : stack error #java.lang.NullPointerException at packagename.addTraceIdToThreadContext(XXX.java:115) at ...
111 public void addTraceIdToThreadContext(String traceId) { ... 114 if (nonNull(this.logContext)) { 115 this.logContext.setTraceId(traceId); 116 } 117 } (Thanks for the comments, the XXX.java is in singleton, the application(web app under JBoss) is not in multithreads, nonNull method is imported from Objects class)
I suppose the line number in the stacktrace is correct? Any idea please? Thanks
Источник: https://stackoverflow.com/questions/781 ... ible-place
I'm having this super weird NPE:
Technical Exception : stack error #java.lang.NullPointerException at packagename.addTraceIdToThreadContext(XXX.java:115) at ...
111 public void addTraceIdToThreadContext(String traceId) { ... 114 if (nonNull(this.logContext)) { 115 this.logContext.setTraceId(traceId); 116 } 117 } (Thanks for the comments, the XXX.java is in singleton, the application(web app under JBoss) is not in multithreads, nonNull method is imported from Objects class)
I suppose the line number in the stacktrace is correct? Any idea please? Thanks
Источник: https://stackoverflow.com/questions/781 ... ible-place
Мобильная версия