TMF: add support of cut/copy/paste/dnd in FilterView
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.core / src / org / eclipse / linuxtools / tmf / core / filter / model / TmfFilterMatchesNode.java
index 79bfb552a363d3b1bd0c45219e38d313d21549d8..aad75a02358308c03d2a54ed4048d7b762085730 100644 (file)
@@ -89,10 +89,12 @@ public class TmfFilterMatchesNode extends TmfFilterTreeNode {
      */
     public void setRegex(String regex) {
         this.fRegex = regex;
-        try {
-            this.fPattern = Pattern.compile(regex, Pattern.DOTALL);
-        } catch (PatternSyntaxException e) {
-            this.fPattern = null;
+        if (regex != null) {
+            try {
+                this.fPattern = Pattern.compile(regex, Pattern.DOTALL);
+            } catch (PatternSyntaxException e) {
+                this.fPattern = null;
+            }
         }
     }
 
This page took 0.024148 seconds and 5 git commands to generate.