Commit 266c22d
committed
fix: prevent an exception during LanguageServerPlugin#stop
org.osgi.framework.BundleException: Exception in
org.eclipse.lsp4e.LanguageServerPlugin.stop() of bundle
org.eclipse.lsp4e.
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:928)
at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:1096)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:399)
at org.eclipse.osgi.container.Module.doStop(Module.java:699)
at org.eclipse.osgi.container.Module.stop(Module.java:557)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:2153)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:2022)
at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:281)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:225)
at org.eclipse.osgi.container.Module.doStop(Module.java:699)
at org.eclipse.osgi.container.Module.stop(Module.java:557)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:212)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:244)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.ExceptionInInitializerError
at org.eclipse.lsp4e.LanguageServerPlugin.stop(LanguageServerPlugin.java:72)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:908)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:900)
... 13 more
Caused by: java.lang.NullPointerException: Cannot invoke
"java.util.Set.add(Object)" because "this.resourcesWithZoomSupport" is
null
at org.eclipse.swt.graphics.Device.registerResourceWithZoomSupport(Device.java:966)
at org.eclipse.swt.graphics.Image.<init>(Image.java:247)
at org.eclipse.lsp4e.ui.LSPImages.<clinit>(LSPImages.java:69)
... 18 more
Root exception:
java.lang.ExceptionInInitializerError
at org.eclipse.lsp4e.LanguageServerPlugin.stop(LanguageServerPlugin.java:72)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:908)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:571)
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:900)
at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:1096)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:399)
at org.eclipse.osgi.container.Module.doStop(Module.java:699)
at org.eclipse.osgi.container.Module.stop(Module.java:557)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:2153)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:2022)
at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:281)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:225)
at org.eclipse.osgi.container.Module.doStop(Module.java:699)
at org.eclipse.osgi.container.Module.stop(Module.java:557)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:212)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:244)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.lang.NullPointerException: Cannot invoke
"java.util.Set.add(Object)" because "this.resourcesWithZoomSupport" is
null
at org.eclipse.swt.graphics.Device.registerResourceWithZoomSupport(Device.java:966)
at org.eclipse.swt.graphics.Image.<init>(Image.java:247)
at org.eclipse.lsp4e.ui.LSPImages.<clinit>(LSPImages.java:69)
... 18 more1 parent ebb9170 commit 266c22d
3 files changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
240 | 241 | | |
241 | 242 | | |
242 | 243 | | |
243 | | - | |
| 244 | + | |
244 | 245 | | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
248 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
249 | 254 | | |
250 | 255 | | |
251 | 256 | | |
| |||
543 | 548 | | |
544 | 549 | | |
545 | 550 | | |
546 | | - | |
| 551 | + | |
547 | 552 | | |
548 | | - | |
| 553 | + | |
| 554 | + | |
549 | 555 | | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
| 559 | + | |
553 | 560 | | |
554 | 561 | | |
0 commit comments