Open
Description
I observed NullPointerException's, when limiting the Toast number to display, with "Toast.limit" and flooding the app with a many Toast. There must be a race condition:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "list" is null
at raven.toast.Notifications$NotificationAnimation.getLocation(Notifications.java:412)
at raven.toast.Notifications$NotificationAnimation.updateLocation(Notifications.java:401)
at raven.toast.Notifications$NotificationAnimation.access$800(Notifications.java:261)
at raven.toast.Notifications$NotificationAnimation$1.timingEvent(Notifications.java:322)
at com.formdev.flatlaf.util.Animator.timingEvent(Animator.java:270)
at com.formdev.flatlaf.util.Animator.lambda$start$0(Animator.java:194)
at java.desktop/javax.swing.Timer.fireActionPerformed(Timer.java:311)
at java.desktop/javax.swing.Timer$DoPostEvent.run(Timer.java:243)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Metadata
Metadata
Assignees
Labels
No labels