Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-01-10 16:56:22 +0000
committerMike Rennie2013-01-10 16:56:22 +0000
commit05bc8e20299d1fd2c4898ccce9ae2f686fde9749 (patch)
tree9a77174353e6b2c434b081ac5695779ae8e5fcc8 /org.eclipse.ui.console/src
parent63ebc892fd1e5777ee91b04df23ca736f578e681 (diff)
downloadeclipse.platform.debug-05bc8e20299d1fd2c4898ccce9ae2f686fde9749.tar.gz
eclipse.platform.debug-05bc8e20299d1fd2c4898ccce9ae2f686fde9749.tar.xz
eclipse.platform.debug-05bc8e20299d1fd2c4898ccce9ae2f686fde9749.zip
Bug 378615 - NPE in ConsolePatternMatcher$MatchJob.run
Diffstat (limited to 'org.eclipse.ui.console/src')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePatternMatcher.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePatternMatcher.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePatternMatcher.java
index e1d9abe3d..c2f0b184f 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePatternMatcher.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsolePatternMatcher.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 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
@@ -95,6 +95,9 @@ public class ConsolePatternMatcher implements IDocumentListener {
// reuse the text string if possible
text = doc.get(baseOffset, lengthToSearch);
}
+ if(text == null) {
+ continue;
+ }
Matcher reg = notifier.pattern.matcher(text);
Matcher quick = null;
if (notifier.qualifier != null) {

Back to the top