18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Nullpointerexception in ProcessHelper
Sahi OS version seems to throw a NullpointerException in ProcessHelper while browser.close() call in java. This happens if you open the browser is not loaded completely and a close is issued on the same.
Is this fixed in the pro version?
Is this fixed in the pro version?
net.sf.sahi.test.ProcessHelper kill
INFO: Kill: null
java.lang.NullPointerException
at net.sf.sahi.test.ProcessHelper.killPIDs(ProcessHelper.java:172)
at net.sf.sahi.test.ProcessHelper.kill(ProcessHelper.java:165)
at net.sf.sahi.test.BrowserLauncher.kill(BrowserLauncher.java:80)
at net.sf.sahi.client.Browser.kill(Browser.java:275)
at net.sf.sahi.client.Browser.close(Browser.java:268)
at ...
Comments
There is no difference in OS or the pro version. With Java, Sahi needs the browser to load before it can kill those PIDs.
Thanks,
Vivek
In that case shouldn't the browser.open() complete successfully only when the browser is loaded and a PID is available? This seems to be a bug in browser.open().
Thanks.
Ganesh
why do you care? This is some proxy error which should not interfer with your test. Or does this disturb your test in any way?
Regards
Wormi