Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 273498
Collapse All | Expand All

(-)core/org/eclipse/debug/internal/core/LaunchConfiguration.java (-6 / +4 lines)
Lines 199-206 Link Here
199
		Exception ex = null;
199
		Exception ex = null;
200
		try {
200
		try {
201
			Element root = null;
201
			Element root = null;
202
			DocumentBuilder parser =
202
			DocumentBuilder parser = DocumentBuilderFactory.newInstance().newDocumentBuilder();
203
				DocumentBuilderFactory.newInstance().newDocumentBuilder();
204
			parser.setErrorHandler(new DefaultHandler());
203
			parser.setErrorHandler(new DefaultHandler());
205
			StringReader reader = new StringReader(memento);
204
			StringReader reader = new StringReader(memento);
206
			InputSource source = new InputSource(reader);
205
			InputSource source = new InputSource(reader);
Lines 210-223 Link Here
210
			String path = root.getAttribute(IConfigurationElementConstants.PATH);
209
			String path = root.getAttribute(IConfigurationElementConstants.PATH);
211
210
212
			String message = null;				
211
			String message = null;				
213
			if (path == null) {
212
			if (path == null || IInternalDebugCoreConstants.EMPTY_STRING.equals(path)) {
214
				message = DebugCoreMessages.LaunchConfiguration_18;  
213
				message = DebugCoreMessages.LaunchConfiguration_18;  
215
			} else if (localString == null) {
214
			} else if (localString == null || IInternalDebugCoreConstants.EMPTY_STRING.equals(localString)) {
216
				message = DebugCoreMessages.LaunchConfiguration_19;  
215
				message = DebugCoreMessages.LaunchConfiguration_19;  
217
			}
216
			}
218
			if (message != null) {
217
			if (message != null) {
219
				IStatus s = newStatus(message, DebugException.INTERNAL_ERROR, null);
218
				throw new CoreException(newStatus(message, DebugException.INTERNAL_ERROR, null));
220
				throw new CoreException(s);
221
			}
219
			}
222
			
220
			
223
			
221
			

Return to bug 273498