From 357d4e697d682f87acd1c8faf08e2f3a31f70bcc Mon Sep 17 00:00:00 2001 From: adam-m Date: Thu, 30 Aug 2012 15:27:46 -0400 Subject: [PATCH] Ensure ingest top component is initialized in AWT thread when Window systme is ready --- Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java index 9cc698d484..63ace2b11a 100755 --- a/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java +++ b/Ingest/src/org/sleuthkit/autopsy/ingest/IngestManager.java @@ -143,7 +143,8 @@ public class IngestManager { DATA }; //ui - private IngestUI ui = IngestMessageTopComponent.findInstance(); + //Initialized by Installer in AWT thread once the Window System is ready + private IngestUI ui = null; //IngestMessageTopComponent.findInstance(); //singleton private static IngestManager instance; @@ -151,6 +152,9 @@ public class IngestManager { imageIngesters = new ArrayList(); } + /** + * called by Installer in AWT thread once the Window System is ready + */ void initUI() { if (ui == null) { IngestMessageTopComponent.findInstance();