kieler / elkjs

ELK's layout algorithms for JavaScript
Other
1.81k stars 97 forks source link

Measuring execution time throws NullPointerException #280

Open codedpalette opened 6 months ago

codedpalette commented 6 months ago

Describe the bug When calling elk.layout with parameters object { measureExecutionTime: true, logging: true } it throws TypeError: java.lang.NullPointerException

Expected behavior Layout finishes successfully and a logging field is present in the returned object

Stacktrace

at NullPointerException.createError_0 [as createError] (elk-worker.js:11595:1)
    at NullPointerException.initializeBackingError (elk-worker.js:8262:1)
    at NullPointerException.Throwable (elk-worker.js:8205:1)
    at NullPointerException.RuntimeException (elk-worker.js:8277:1)
    at new NullPointerException (elk-worker.js:11586:1)
    at new JSONString (elk-worker.js:10097:1)
    at collectLogs (elk-worker.js:79760:1)
    at collectLogs (elk-worker.js:79787:1)
    at collectLogs (elk-worker.js:79787:1)
    at layout_11 (elk-worker.js:79892:1)
    at Dispatcher.dispatch (elk-worker.js:79817:1)
    at Dispatcher.saveDispatch (elk-worker.js:79825:1)
    at elk-worker.js:79842:1

ELK Version 0.9.3

Additional context The logging field and it's type is missing from typescript declaration files