View | Details | Raw Unified | Return to bug 216817 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/core/JavaCore.java (-1 / +3 lines)
Lines 2936-2942 Link Here
2936
			return ResourcesPlugin.getWorkspace().getRoot().getDefaultCharset();
2936
			return ResourcesPlugin.getWorkspace().getRoot().getDefaultCharset();
2937
		}
2937
		}
2938
		catch (IllegalStateException ise) {
2938
		catch (IllegalStateException ise) {
2939
			// happen when the workspace is shutting down (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=60687)
2939
			// happen when there's no workspace (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=216817)
2940
			// or when it is shutting down (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=60687)
2941
			return System.getProperty("file.encoding"); //$NON-NLS-1$
2940
		}
2942
		}
2941
		catch (CoreException ce) {
2943
		catch (CoreException ce) {
2942
			// fails silently and return plugin global encoding if core exception occurs
2944
			// fails silently and return plugin global encoding if core exception occurs

Return to bug 216817