My test passes but I see an error in the console (Exception in thread “WorkbenchTestable” java.lang.NullPointerException), is this a problem?
This exception appears to be caused in cases where the workspace is being shut down by test code (e.g., by selecting the “Exit” menu item or closing the main Shell) at the same time as the PDE test runner is itself also closing down the application. Note that you do not need to explicitly exit the application at the end of your tests since that will be done for you by the test runner. If this describes your case, remove the explicit calls to exit the application and you should be OK. If it doesn’t tell us more!
This exception appears to be caused in cases where the workspace is being shut down by test code (e.g., by selecting the Exit menu item or closing the main Shell) at the same time as the PDE test runner is itself also closing down the application. Note that you do not need to explicitly exit the application at the end of your tests since that will be done for you by the test runner. If this describes your case, remove the explicit calls to exit the application and you should be OK. If it doesn’t tell us more!
Related Questions
- My test passes but I see an error in the console (Exception in thread "WorkbenchTestable" java.lang.NullPointerException), is this a problem?
- My test passes but I see an error in the console (Exception in thread "WorkbenchTestable" java.lang.NullPointerException), is this a problem?
- What should I do if I receive the error "Uncaught exception: java.lang.NullPointerException."?