Details
-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 6.8
-
Component/s: None
-
Labels:None
Description
The `servers` list in SonarLintGlobalSettings is sometimes mutable, sometimes not depending on the execution paths. It can happen that it is immutable and we try to modify it, as it happens here:
java.lang.UnsupportedOperationException at java.base/java.util.ImmutableCollections.uoe(ImmutableCollections.java:72) at java.base/java.util.ImmutableCollections$AbstractImmutableList.set(ImmutableCollections.java:110) at o.sl.ij.notifications.ProjectServerNotificationsSubscriber$ConfigureNotificationsAction.actionPerformed$lambda-1(ProjectServerNotificationsSubscriber.kt:200) at c.ij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101) at c.ij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2183) at o.sl.ij.notifications.ProjectServerNotificationsSubscriber$ConfigureNotificationsAction.actionPerformed(ProjectServerNotificationsSubscriber.kt:193) at c.ij.notification.NotificationAction.actionPerformed(NotificationAction.java:32) at c.ij.oa.actionSystem.ex.ActionUtil.lambda$performActionDumbAwareWithCallbacks$4(ActionUtil.java:240) at c.ij.oa.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:261) at c.ij.oa.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.java:240) at c.ij.notification.Notification.fire(Notification.java:194) at c.ij.notification.impl.NotificationsManagerImpl.lambda$createActionPanel$9(NotificationsManagerImpl.java:733) at c.ij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:177) at c.ij.ui.components.labels.LinkLabel.doClick(LinkLabel.java:389) at c.ij.ui.components.labels.LinkLabel$MyMouseHandler.mouseReleased(LinkLabel.java:363)