Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullpointerException when limiting toasts #8

Open
efc-mw opened this issue Aug 19, 2024 · 0 comments
Open

NullpointerException when limiting toasts #8

efc-mw opened this issue Aug 19, 2024 · 0 comments

Comments

@efc-mw
Copy link

efc-mw commented Aug 19, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant