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:
parent
1315197b69
commit
9c26fd0055
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue