Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Occasional NullPointerExceptions on Windows
Occasional NullPointerExceptions on Windows [message #654635] Wed, 16 February 2011 14:33
Geoff Bache is currently offline Geoff Bache
Messages: 33
Registered: October 2010
Member
Hi all,

I have an issue with my tests where maybe about one in 30 or 40 fails on Windows when I run them there. It is different tests every time, and this never happens on Linux where I do most of my work (fortunately).

It happens when I try to call UIThreadRunnable.syncExec in SWTBot, and results in the following each time:

> java.lang.NullPointerException
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.run(U IThreadRunnable.java:76)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE xec(UIThreadRunnable.java:142)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE xec(UIThreadRunnable.java:125)

Reading the code it would appear that the synchronizer member of the Display object is null. But that looks impossible from the code.

Does anyone have any insight into what might be the cause, or how one might narrow down what is going on?

Regards,
Geoff
Previous Topic:Right way to set keyboard layout
Next Topic:Can't make swtbot work on icewm when there's a change of shell
Goto Forum:
  


Current Time: Sun Oct 26 04:24:25 GMT 2014

Powered by FUDForum. Page generated in 0.05750 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software