Error evaluating Property in the Eclipse log from SonarLint

Hi,

In my Eclipse 2021-12 release I see multiple SonarLint errors, see below.

Could you create an issue to get this fixed on the SonarLint side?

Best regards, Lars

org.eclipse.core.runtime.CoreException: Error evaluating Property
[org.sonarlint.eclipse.ui.quickFix, type=class
org.eclipse.ui.internal.views.markers.MarkerCategory,
tester=org.sonarlint.eclipse.ui.internal.markers.QuickFixPropertyTester@7b31b8f9]
    at org.eclipse.core.internal.expressions.Property.test(Property.java:68)
    at org.eclipse.core.expressions.TestExpression.evaluate(TestExpression.java:107)
    at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
    at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:163)
    at org.eclipse.core.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:54)
    at org.eclipse.core.expressions.AndExpression.evaluate(AndExpression.java:36)
    at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:79)
    at org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:109)
    at org.eclipse.ui.internal.services.EvaluationReference.changed(EvaluationReference.java:103)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:105)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:356)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:372)
    at org.eclipse.ui.internal.services.EvaluationService$1.changed(EvaluationService.java:79)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:105)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:356)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:372)
    at org.eclipse.e4.ui.internal.workbench.swt.E4Application$3.changed(E4Application.java:789)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:105)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:356)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:372)
    at org.eclipse.e4.ui.internal.workbench.SelectionAggregator$5.changed(SelectionAggregator.java:219)
    at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:105)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:356)
    at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:372)
    at org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl.setSelection(SelectionServiceImpl.java:34)
    at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.selectionChanged(CompatibilityPart.java:471)
    at org.eclipse.jface.viewers.Viewer$1.run(Viewer.java:151)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:174)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:148)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2130)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1176)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1205)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:263)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:421)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4243)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4060)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3632)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
Caused by: java.lang.NullPointerException
    at org.sonarlint.eclipse.core.internal.markers.MarkerUtils.getIssueQuickFixes(MarkerUtils.java:141)
    at org.sonarlint.eclipse.ui.internal.markers.QuickFixPropertyTester.test(QuickFixPropertyTester.java:41)
    at org.eclipse.core.internal.expressions.Property.test(Property.java:65)
... 60 more

Hi Lars,

I managed to reproduce and I created a ticket:
https://jira.sonarsource.com/browse/SLE-482

Thanks for the feedback!