Maven plugin (spring-boot:run) produces NPE when empty argument is passed in plugin config
See original GitHub issueThe 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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Duplicate of #9916