#436 java.lang.NullPointerException 1


When you want to select an option in a context menu, and then you regret and click outside the popup menu, a red alert appear.

This error is related to the UI. And it's important to solve it because it usually happen, an produces a little scare in the user.

hot to reproduce it:
- select an object (in the objects pane)
- click on a item in the main menu (by example "animation")
- with the menu desplegated, try to select another object or just click the Object pane (see the picture)

The alert says:
at artofillusion.ui.AutoScroller.mouseReleased(AutoScroller.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at buoy.internal.EventLinkRecord.dispatchEvent(EventLinkRecord.java:81)
at buoy.event.EventSource.dispatchEvent(EventSource.java:140)
at buoy.widget.Widget.dispatchEvent(Widget.java:326)
at buoy.internal.EventLinkAdapter.dispatchEvent(EventLinkAdapter.java:212)

Reported 7 time(s).


  • TroY

    TroY - 2010-08-15

    Hi mayid,

    there’s a variety of bugs related to this. I think the other bug you posted (#3044993) is a duplicate as well. For example, users of the german AoI board reported the following:

    * Right click on empty space in the object list. A context menu with all items disabled appears.
    * Left click on some other empty space in the object list.
    * You’ll get the exception above.

    However, on GNU/Linux, I can’t reproduce any of those bugs. Everything’s fine. I suspect that this is specific to the way Windows handles events. Maybe you don’t get the alerts on MacOS either. You are using Windows, aren’t you, mayid?

    Anyway, in AutoScroller.java, it’s easy to check whether “scrollThread” is “null”. This doesn’t hurt and it can avoid the alert:



  • Guillermo Pérez

    Thanks Troy!

    Yes, the other bug i posted is entirely related to this one. But i didn't thought it could be fixed from the same place.

    Nice to see that there's a patch! But how should i apply it? Modifying the class myself?

  • Peter Eastman

    Peter Eastman - 2012-05-28

    I can't reproduce this in the current version.

  • Peter Eastman

    Peter Eastman - 2012-05-28
    • status: open --> closed-works-for-me

Log in to post a comment.