check if disposed (EA-37138)

This commit is contained in:
peter
2012-07-04 10:46:48 +02:00
parent 6e864b9cd6
commit da604db094
@@ -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