Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20961

camel-jbang - NPE in log grep

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.8.0
    • camel-jbang
    • None
    • Unknown

    Description

      ~/.camel ❯ camel log --grep=chuck
      java.lang.NullPointerException: Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
      at java.base/java.util.regex.Matcher.getTextLength(Matcher.java:1769)
      at java.base/java.util.regex.Matcher.reset(Matcher.java:415)
      at java.base/java.util.regex.Matcher.<init>(Matcher.java:252)
      at java.base/java.util.regex.Pattern.matcher(Pattern.java:1134)
      at org.apache.camel.dsl.jbang.core.commands.action.CamelLogAction.isValidGrep(CamelLogAction.java:485)
      at org.apache.camel.dsl.jbang.core.commands.action.CamelLogAction.tailLogFiles(CamelLogAction.java:429)
      at org.apache.camel.dsl.jbang.core.commands.action.CamelLogAction.doCall(CamelLogAction.java:152)
      at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:71)
      at org.apache.camel.dsl.jbang.core.commands.CamelCommand.call(CamelCommand.java:37)
      at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
      at picocli.CommandLine.access$1500(CommandLine.java:148)
      at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
      at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
      at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
      at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
      at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
      at picocli.CommandLine.execute(CommandLine.java:2174)
      at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:169)
      at org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:61)
      at main.CamelJBang.main(CamelJBang.java:36)
      ~/.camel ❯

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: