Bug 522696 - [9] Log error if Xbootclasspath or Xbootclasspath/p used in
run configuration above 9

Change-Id: Ia97f82f1ca44502c8761ce0821e0fe7c4427e5d2
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMRunner.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMRunner.java
index 66965c2..a0b4d42 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMRunner.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/StandardVMRunner.java
@@ -599,11 +599,11 @@
 			prependBootCP = (String[]) map.get(IJavaLaunchConfigurationConstants.ATTR_BOOTPATH_PREPEND);
 			bootCP = (String[]) map.get(IJavaLaunchConfigurationConstants.ATTR_BOOTPATH);
 			if (JavaRuntime.isModularJava(fVMInstance)) {
-				if (prependBootCP != null) {
+				if (prependBootCP != null && prependBootCP.length > 0) {
 					prependBootCP = null;
 					LaunchingPlugin.log(LaunchingMessages.RunnerBootpathPError);
 				}
-				if (bootCP != null) {
+				if (bootCP != null && bootCP.length > 0) {
 					bootCP = null;
 					LaunchingPlugin.log(LaunchingMessages.RunnerBootpathError);
 				}