Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Tanasenko2014-10-24 04:58:34 -0400
committerAnton Tanasenko2014-10-24 04:58:34 -0400
commita3d3db2aba43e78f706ec73a884da6fab81a22ae (patch)
tree586adade084d94570da7633daec3af71da47b4dd /org.eclipse.m2e.core
parent1b6e6eca7a13f3029869e7ebbeef719dcf8f0133 (diff)
downloadm2e-core-a3d3db2aba43e78f706ec73a884da6fab81a22ae.tar.gz
m2e-core-a3d3db2aba43e78f706ec73a884da6fab81a22ae.tar.xz
m2e-core-a3d3db2aba43e78f706ec73a884da6fab81a22ae.zip
448598 NPE in BuildProblemInfo constructor
Change-Id: I1fcd3e2c9f1da28fb7f6d85c15d7583d0043280f Signed-off-by: Anton Tanasenko <atg.sleepless@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.core')
-rw-r--r--org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java
index 9d91bbe3..5edbd851 100644
--- a/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java
+++ b/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/builder/BuildProblemInfo.java
@@ -20,15 +20,15 @@ import org.eclipse.m2e.core.project.configurator.MojoExecutionKey;
class BuildProblemInfo extends MavenProblemInfo {
public BuildProblemInfo(Throwable error, MojoExecutionKey mojoExecutionKey, SourceLocation markerLocation) {
- super(formatMessage(error, mojoExecutionKey), markerLocation); //$NON-NLS-1$
+ super(formatMessage(error, mojoExecutionKey), markerLocation);
}
private static String formatMessage(Throwable error, MojoExecutionKey mojoExecutionKey) {
- StringBuilder msg = new StringBuilder(error.getMessage());
+ StringBuilder msg = new StringBuilder(String.valueOf(error.getMessage()));
if(mojoExecutionKey != null) {
- msg.append(" (").append(mojoExecutionKey.getKeyString()).append(')');
+ msg.append(" (").append(mojoExecutionKey.getKeyString()).append(')'); //$NON-NLS-1$ $NON-NLS-2$
}
- msg.append("\n\n").append(Throwables.getStackTraceAsString(error));
+ msg.append("\n\n").append(Throwables.getStackTraceAsString(error)); //$NON-NLS-1$
return msg.toString();
}
}

Back to the top