| Summary: | NPE in UIThread when refreshing the browser without closing the workbench | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Benjamin Wolff <eclipse> |
| Component: | Workbench | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | ||
| Version: | 2.0 | ||
| Target Milestone: | 2.0 M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Benjamin Wolff
I got similar NPE on Workbench Demo start: !ENTRY org.eclipse.core.jobs 4 2 2012-12-18 09:39:11.863 !MESSAGE An internal error occurred during: "Decoration Calculation". !STACK 0 java.lang.NullPointerException at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1252) at java.util.ResourceBundle.getBundle(ResourceBundle.java:1028) at org.eclipse.rap.rwt.RWT$NLS.getISO8859_1Encoded(RWT.java:118) at org.eclipse.ui.internal.WorkbenchMessages.get(WorkbenchMessages.java:1143) at org.eclipse.ui.internal.decorators.DecorationScheduler$4.doRun(DecorationScheduler.java:352) at org.eclipse.ui.internal.decorators.DecorationScheduler$4$1.run(DecorationScheduler.java:321) at org.eclipse.rap.rwt.internal.lifecycle.ContextUtil.runNonUIThreadWithFakeContext(ContextUtil.java:67) at org.eclipse.rap.rwt.internal.service.UISessionImpl.exec(UISessionImpl.java:167) at org.eclipse.ui.internal.decorators.DecorationScheduler$4.run(DecorationScheduler.java:319) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) The problem is in RWT#getLocale() which returns null in case of fake context. Fixed with commit e54811202a7842ddcd6bbaa7af18fcd2da8a28ae. Hi Ivan, I can confirm that this bug does not occur anymore, nice! And you receive the Academy Award for short bug-report-to-resolve-time, yet again :D. |