commit | 61093a4d7f9cdc63a03fab1c08a50e351607732c | [log] [tgz] |
---|---|---|
author | Joerg Kubitz <jkubitz-eclipse@gmx.de> | Fri Dec 10 10:22:02 2021 +0100 |
committer | Lars Vogel <Lars.Vogel@vogella.com> | Fri Dec 10 08:02:46 2021 -0500 |
tree | 989969d195361ad3a0ceab9a045717d7053b0264 | |
parent | 714f63015173e945ba38d3bd0921d09744ca2118 [diff] |
Bug 577738 - NPE in LaunchArgumentsHelper.getUserProgramArguments Change-Id: I7ce3525257459ece377c7c9dd88a08cb21e8c827 Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/188729 Tested-by: PDE Bot <pde-bot@eclipse.org> Tested-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/LaunchListener.java b/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/LaunchListener.java index b403a39..af440ee 100644 --- a/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/LaunchListener.java +++ b/ui/org.eclipse.pde.launching/src/org/eclipse/pde/internal/launching/launcher/LaunchListener.java
@@ -160,6 +160,9 @@ * @since 3.4 */ public static File getMostRecentLogFile(ILaunchConfiguration configuration) throws CoreException { + if (configuration == null) { + return null; + } File latest = null; String workspace = LaunchArgumentsHelper.getWorkspaceLocation(configuration); if (workspace.length() > 0) {