if (runningApps != null)
if (runningApps != null && runningId != null)
	public void _stopApp(CommandInterpreter intp) throws Exception {		String runningId = intp.nextArgument();		ServiceReference[] runningApps = appHandleTracker.getServiceReferences();		if (runningApps != null)			for (int i = 0; i < runningApps.length; i++)				if (runningId.equals(runningApps[i].getProperty(ApplicationHandle.APPLICATION_PID))) {					if (activeApp.match(getServiceProps(runningApps[i]))) {						try {							ApplicationHandle appDesc = (ApplicationHandle) context.getService(runningApps[i]);							appDesc.destroy();							intp.println("Stopped application: " + runningId); //$NON-NLS-1$						} finally {							context.ungetService(runningApps[i]);						}					} else {						intp.println("Applicationi is already stopping: " + runningId); //$NON-NLS-1$					}					return;				}		intp.println("No running application with the id \"" + runningId + "\" exists."); //$NON-NLS-1$ //$NON-NLS-2$	}