Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-01-13 22:08:17 +0000
committerChris Goldthorpe2011-01-13 22:08:17 +0000
commit230c0369664d7392523face8424cc24d1af1475c (patch)
tree5cd5bda136d57d85ff6f58de1badc0b8de92c2f5 /org.eclipse.help.ui/src
parentc0c5b00e9f23f5a733df00a61ad262f6034bbbd6 (diff)
downloadeclipse.platform.ua-230c0369664d7392523face8424cc24d1af1475c.tar.gz
eclipse.platform.ua-230c0369664d7392523face8424cc24d1af1475c.tar.xz
eclipse.platform.ua-230c0369664d7392523face8424cc24d1af1475c.zip
Bug 334314 - [Help][Context] NPE in EscapeUtils when activating Dynamic Help
Diffstat (limited to 'org.eclipse.help.ui/src')
-rw-r--r--org.eclipse.help.ui/src/org/eclipse/help/ui/internal/util/EscapeUtils.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/util/EscapeUtils.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/util/EscapeUtils.java
index 3ddcba98d..1114c6a16 100644
--- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/util/EscapeUtils.java
+++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/util/EscapeUtils.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 IBM Corporation and others.
+ * Copyright (c) 2007, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -67,6 +67,9 @@ public class EscapeUtils {
}
private static String escapeSpecialChars(String value, boolean leaveBold) {
+ if (value == null) {
+ return null;
+ }
StringBuffer buf = new StringBuffer();
for (int i = 0; i < value.length(); i++) {
char c = value.charAt(i);

Back to the top