[563404] Avoid an NPE during faults with runtime validation

Signed-off-by: Nitin Dahyabhai <thatnitind@gmail.com>
Change-Id: I88e94dbb9b7e63511e1b911c224afa3a110839d9
diff --git a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Runtime.java b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Runtime.java
old mode 100644
new mode 100755
index 11c2e69..bfd8377
--- a/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Runtime.java
+++ b/plugins/org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/internal/Runtime.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2003, 2011 IBM Corporation and others.
+ * Copyright (c) 2003, 2021 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License 2.0
  * which accompanies this distribution, and is available at
@@ -66,7 +66,7 @@
 			return getDelegate(monitor).validate();
 		} catch (Exception e) {
 			ServerPlugin.logExtensionFailure(toString(), e);
-			return null;
+			return new Status(IStatus.ERROR, getClass(), "Exception validating runtime");
 		}
 	}
 
@@ -211,4 +211,4 @@
 	public String toString() {
 		return "Runtime[" + getId() + ", " + getName() + ", " + getLocation() + ", " + getRuntimeType() + "]";
 	}
-}
\ No newline at end of file
+}