mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check if disposed (EA-37138)
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ public class NotificationsManagerImpl extends NotificationsManager implements No
|
||||
@Override
|
||||
public <T extends Notification> T[] getNotificationsOfType(Class<T> klass, @Nullable final Project project) {
|
||||
final List<T> result = new ArrayList<T>();
|
||||
if (project == null || !project.isDefault()) {
|
||||
if (project == null || !project.isDefault() && !project.isDisposed()) {
|
||||
for (Notification notification : EventLog.getLogModel(project).getNotifications()) {
|
||||
if (klass.isInstance(notification)) {
|
||||
//noinspection unchecked
|
||||
|
||||
Reference in New Issue
Block a user