1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix for 146831, StringIndexoutOfBoundsException using source hover.

This commit is contained in:
Markus Schorn 2007-05-16 12:04:14 +00:00
parent 1315197b69
commit 9c26fd0055

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000 2005 IBM Corporation and others.
* Copyright (c) 2000, 2007 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
@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* QNX Software System
* Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.ui.text;
@ -110,7 +111,7 @@ public class HTML2TextReader extends SubstitutionTextReader {
private String html2Text(String html) {
String tag= html;
if ('/' == tag.charAt(0))
if (tag.length() > 0 && '/' == tag.charAt(0))
tag= tag.substring(1);
if (!fgTags.contains(tag))