Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2014-05-30 13:30:24 +0000
committerBernd Hufmann2014-06-05 11:27:03 +0000
commit67dd68b2fc1473c0b0caa6e365ae8fcf32cc3440 (patch)
tree16f48b9f95c8a6a99584f68ee2f55691cfd52403
parent4997a04a3569a4fd3f3a6067aac984945ffebdb4 (diff)
downloadorg.eclipse.linuxtools-67dd68b2fc1473c0b0caa6e365ae8fcf32cc3440.tar.gz
org.eclipse.linuxtools-67dd68b2fc1473c0b0caa6e365ae8fcf32cc3440.tar.xz
org.eclipse.linuxtools-67dd68b2fc1473c0b0caa6e365ae8fcf32cc3440.zip
tmf-rcp: Fix NPE at startup with --open (bug 436239)
Change-Id: Ie393ae61f31c4610373d919e38100ca095c53562 Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com> Reviewed-on: https://git.eclipse.org/r/27585 Tested-by: Hudson CI Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/27812
-rw-r--r--lttng/org.eclipse.linuxtools.tracing.rcp.ui/src/org/eclipse/linuxtools/internal/tracing/rcp/ui/ApplicationWorkbenchWindowAdvisor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.tracing.rcp.ui/src/org/eclipse/linuxtools/internal/tracing/rcp/ui/ApplicationWorkbenchWindowAdvisor.java b/lttng/org.eclipse.linuxtools.tracing.rcp.ui/src/org/eclipse/linuxtools/internal/tracing/rcp/ui/ApplicationWorkbenchWindowAdvisor.java
index e38ce8492f..5e8f830446 100644
--- a/lttng/org.eclipse.linuxtools.tracing.rcp.ui/src/org/eclipse/linuxtools/internal/tracing/rcp/ui/ApplicationWorkbenchWindowAdvisor.java
+++ b/lttng/org.eclipse.linuxtools.tracing.rcp.ui/src/org/eclipse/linuxtools/internal/tracing/rcp/ui/ApplicationWorkbenchWindowAdvisor.java
@@ -109,7 +109,7 @@ public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
String traceToOpen = TracingRcpPlugin.getDefault().getCli().getArgument(CliParser.OPEN_FILE_LOCATION);
if (traceToOpen != null) {
try {
- TmfTraceFolder destinationFolder = TmfProjectRegistry.getProject(project).getTracesFolder();
+ TmfTraceFolder destinationFolder = TmfProjectRegistry.getProject(project, true).getTracesFolder();
TmfOpenTraceHelper.openTraceFromPath(destinationFolder, traceToOpen, TracingRcpPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell());
} catch (CoreException e) {
TracingRcpPlugin.getDefault().logError(e.getMessage());

Back to the top