| Summary: | Avoid NPE when when no location information is available | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Carsten Pfeiffer <carsten.pfeiffer> |
| Component: | m2e | Assignee: | Project Inbox <m2e.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | fbricon |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| See Also: |
https://git.eclipse.org/r/65374 https://git.eclipse.org/c/m2e/m2e-core.git/commit/?id=dfd4dbbe643508f1866a5a14ce755298fcdceb4f |
||
| Whiteboard: | |||
|
Description
Carsten Pfeiffer
See https://git.eclipse.org/r/65374 for a fix. Thanks for the patch Carsten. Could you please also add a test case to https://github.com/tesla/m2e-core-tests? Unfortunately this is quite hard. The Maven tiles extension uses internal Maven API with the help of Groovy to add "virtual parent" models. These virtual models have no source file. Now when the build aborts due to a problem with the execution of a "virtual parent", m2e tries to find the source location of the cause, which fails of course (there is no source). One could argue that this is a bug in the tiles extension, (using internal API to add models without source location), but it would also be nice if m2e would be graceful and not produce an NPE. Ok fair enough. Given it's a simple null-check, I applied it anyway. Thanks Carsten |