if (apps != null)
if (apps != null && appId != null)
	public void _lockApp(CommandInterpreter intp) throws Exception {		String appId = intp.nextArgument();		ServiceReference[] apps = appDescTracker.getServiceReferences();		if (apps != null)			for (int i = 0; i < apps.length; i++)				if (appId.equals(apps[i].getProperty(ApplicationDescriptor.APPLICATION_PID))) {					try {						ApplicationDescriptor appDesc = (ApplicationDescriptor) context.getService(apps[i]);						appDesc.lock();						intp.println("Locked application: " + appId); //$NON-NLS-1$					} finally {						context.ungetService(apps[i]);					}					return;				}		intp.println("No application with the id \"" + appId + "\" exists."); //$NON-NLS-1$ //$NON-NLS-2$	}