From f58721ba6f59357e3fe1d1d1cce8add0e99e294b Mon Sep 17 00:00:00 2001
From: dblouin <dominique.blouin@telecom-paristech.fr>
Date: Tue, 24 Jul 2018 19:07:42 +0200
Subject: [PATCH] Avoid null pointer exceptions in tests

---
 ttool/src/test/java/ui/AbstractUITest.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/ttool/src/test/java/ui/AbstractUITest.java b/ttool/src/test/java/ui/AbstractUITest.java
index 1d2a1c6ba9..b650c1d961 100644
--- a/ttool/src/test/java/ui/AbstractUITest.java
+++ b/ttool/src/test/java/ui/AbstractUITest.java
@@ -4,14 +4,15 @@ import static org.junit.Assert.fail;
 
 import myutil.PluginManager;
 import test.AbstractTest;
-import ui.util.IconManager;
 
 public abstract class AbstractUITest extends AbstractTest {
 	
 	protected final MainGUI mainGui;
 	
 	protected AbstractUITest() {
-		IconManager.loadImg();
+		
+		// DB: Not needed for tests (causes NPE)
+		//IconManager.loadImg();
 		mainGui = new MainGUI(false,false, false, false, false, false, false, false, false, false, true, false, false);
 		mainGui.build();
 		PluginManager.pluginManager = new PluginManager();
-- 
GitLab