Closed kwin closed 4 years ago
At that point in time obviously getYamlEditor()
returns null
(https://github.com/de-jcup/eclipse-yaml-editor/blob/970893c7c3f0bf0986ce231c79e4a7f8329f12dd/yamleditor-plugin/src/main/java-eclipse/de/jcup/yamleditor/handlers/AbstractYamlEditorFoldingHandler.java#L23). I think it is not a very good idea to rely on getters return values in the constructor here. At least a null
guard is missing there as the getter may return null
(https://github.com/de-jcup/eclipse-yaml-editor/blob/970893c7c3f0bf0986ce231c79e4a7f8329f12dd/yamleditor-plugin/src/main/java-eclipse/de/jcup/yamleditor/handlers/AbstractYamlEditorHandler.java#L51)
You are right, will be fixed.
@kwin Just released V1.6.2 on marketplace - contains bugfix. Thanx for reporting.
I experience the following two errors in 1.6.1 on Mac OS X with the most recent Eclipse (2019-12) on Java 11:
and