Menu

#310 NullPointerException in Font.getMetrics()

v1.2 RC2
open
5
2014-08-10
2008-05-16
No

I sometimes get a NullPointerException in Font.getMetrics():

java.lang.NullPointerException
at thinwire.ui.style.Font.getMetrics(Font.java:221)
at thinwire.ui.style.Font.getStringWidth(Font.java:236)

...

at thinwire.ui.EventListenerImpl.fireEvent(EventListenerImpl.java:313)
at thinwire.ui.EventListenerImpl.fireAction(EventListenerImpl.java:245)
at thinwire.ui.AbstractComponent.fireAction(AbstractComponent.java:222)
at thinwire.ui.Menu.fireAction(Menu.java:239)
at thinwire.render.web.ComponentRenderer.componentChange(ComponentRenderer.java:375)
at thinwire.render.web.EventProcessor.processUserActionEvent(EventProcessor.java:129)
at thinwire.render.web.EventProcessor.run(EventProcessor.java:85)

This sometimes happens when I try to open a new Window from a MenuItem. I couldn't reproduce it, but found it in the Server log multiple times for other users.

It seems that clientSideFunctionCallWaitForReturn() returns a null pointer, which can only happen when syncCallResponse is null in the EventProcessor. Maybe it is a concurrency problem, a timer task is regularly polling the server for updates.

If you have an idea how i could reproduce and try help debuging it please let me know.

(Version 1.2_RC2_r641)

Discussion


Log in to post a comment.

Auth0 Logo