takashi-ishio / selogger

(Near-)omniscient debugging/tracing/logging tool for Java
Other
35 stars 8 forks source link

NPE caused by an invalid weaving option #34

Closed takashi-ishio closed 1 year ago

takashi-ishio commented 1 year ago

Any invalid option like weave=INVALID causes a NPE at the program termination.

 Exception in thread "Thread-0" java.lang.NullPointerException: Cannot invoke "selogger.logging.IEventLogger.close()" because "this.logger" is null
    at selogger.weaver.RuntimeWeaver.close(RuntimeWeaver.java:183)
    at selogger.weaver.RuntimeWeaver$1.run(RuntimeWeaver.java:44)
    at java.base/java.lang.Thread.run(Thread.java:832)