-
Notifications
You must be signed in to change notification settings - Fork 176
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
MonthViewSkin: Assigning null to a primitive. (V11.12.3) #193
Comments
Confirmed to still exist in 11.12.6. I assume this is some sort of threading synchronization issue involving positionMap as it not always appears but can be very easily reproduced by clicking on the previous/next button in quick succession. It also happens randomly otherwise though. Outside of analyzing the threading problem, a possible fix is to simply avoid the NPE in MonthDayEntriesPane:update, so changing
to
|
Test case to reproduce:
Click a couple of times on month forward and/or backward button to cause the NPE |
I'm getting exceptions in MonthViewSkin$MonthDayEntriesPane.update(MonthViewSkin.java:675) because the return value of a map lookup is assigned to an int even though it may be null:
Trace:
Cannot invoke "java.lang.Integer.intValue()" because the return value of "java.util.Map.get(Object)" is null
at impl.com.calendarfx.view.MonthViewSkin$MonthDayEntriesPane.update(MonthViewSkin.java:675)
at impl.com.calendarfx.view.MonthViewSkin$MonthDayEntriesPane.lambda$new$0(MonthViewSkin.java:632)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
The text was updated successfully, but these errors were encountered: