question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maven plugin (spring-boot:run) produces NPE when empty argument is passed in plugin config

See original GitHub issue

The Maven plugin needs to have much more robust/defensive code. It is way too easy to produce a NPE with mvn spring-boot:run by just doing this:

<plugin>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-maven-plugin</artifactId>
  <configuration>
    <arguments>
      <argument></argument>
    </arguments>
  </configuration>
</plugin>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
wilkinsonacommented, Jul 10, 2017

Thanks, but I’m well aware of how to check if a String is null or empty. I can even do it without using a third-party library.

0reactions
snicollcommented, Sep 19, 2017

Duplicate of #9916

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when running Spring boot application with Maven
I start the application with : mvn spring-boot:run and the execution stops with an error: java.lang.IllegalArgumentException: Name for parameter ...
Read more >
Spring Boot Reference Documentation
Typically, your Maven POM file inherits from the spring-boot-starter-parent project and declares dependencies to one or more “Starters”. Spring Boot also ...
Read more >
[Solved]-Use of spring-boot-maven-plugin-Springboot
The Spring Boot Maven Plugin provides Spring Boot support in Apache Maven, letting you package ... The maven plugin will create an "executable"...
Read more >
Protect Your Code from NullPointerExceptions with Spring's ...
NullPointerExceptions (often shortened as “NPE”) are a nightmare for ... instead of Maven, you can configure the SpotBugs Gradle Plugin in ...
Read more >
Jira server throws NullPointerException when creating new ...
Assertions$NullArgumentException: config should not be null! at com.atlassian.jira.util.dbc.Assertions.notNull(Assertions.java:28) at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found