diff options
-rw-r--r-- | ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/TaskThread.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/TaskThread.java b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/TaskThread.java index d764bf6..9f2824b 100644 --- a/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/TaskThread.java +++ b/ems/boco/src/main/java/org/onap/vfc/nfvo/emsdriver/collector/TaskThread.java @@ -1010,8 +1010,13 @@ public class TaskThread implements Runnable { log.error("[" + regular + "]compile fails:" + e.getMessage()); e.printStackTrace(); } - - Matcher matcher = lpattern.matcher(regular); + Matcher matcher=null; + if(lpattern!=null) + matcher = lpattern.matcher(regular); + else{ + //define flow in case lpattern is null + } + if (matcher.find()) { isregular = true; String parpath = matcher.group(1); |