NPE fixed

This commit is contained in:
Maxim Shafirov
2005-03-09 23:24:53 +03:00
parent cfd0825a78
commit 9b119fbcdf
@@ -15,7 +15,7 @@ public class JUnitDevKitPatcher extends JUnitPatcher{
public void patchJavaParameters(JavaParameters javaParameters) {
final ProjectJdk jdk = javaParameters.getJdk();
if (!(jdk.getSdkType() instanceof IdeaJdk)) {
if (jdk == null || !(jdk.getSdkType() instanceof IdeaJdk)) {
return;
}
String libPath = jdk.getHomePath() + File.separator + "lib";