Skip to content

Malformed Maven POM Crashes antq #300

Description

@harrigan

I am working on a project with a dependency on https://github.com/dialex/JColor. Currently their pom.xml has a malformed SCM section (reported here dialex/JColor#75). This causes antq to crash with an NPE:

[##################################################] 48/48
Execution error (NullPointerException) at antq.util.url/ensure-git-https-url (url.clj:18).
Cannot invoke "Object.toString()" because "s" is null

Full report at:
/tmp/clojure-943896060743220206.edn
$ cat /tmp/clojure-943896060743220206.edn
{:clojure.main/message
 "Execution error (NullPointerException) at antq.util.url/ensure-git-https-url (url.clj:18).\nCannot invoke \"Object.toString()\" because \"s\" is null\n",
 :clojure.main/triage
 {:clojure.error/class java.lang.NullPointerException,
  :clojure.error/line 18,
  :clojure.error/cause
  "Cannot invoke \"Object.toString()\" because \"s\" is null",
  :clojure.error/symbol antq.util.url/ensure-git-https-url,
  :clojure.error/source "url.clj",
  :clojure.error/phase :execution},
 :clojure.main/trace
 {:via
  [{:type java.lang.NullPointerException,
    :message
    "Cannot invoke \"Object.toString()\" because \"s\" is null",
    :at [clojure.string$replace invokeStatic "string.clj" 101]}],
  :trace
  [...],
  :cause "Cannot invoke \"Object.toString()\" because \"s\" is null"}}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions