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 BacheFriend
Messages: 33
Registered: October 2010
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(
> at
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE xec(
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE xec(

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?

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: Fri Apr 20 20:36:00 GMT 2018

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

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