[nobug] Fixes NPE when running with early startup code.

Change-Id: I129291cc6a38f96df053b35472632f028aa99a82
Signed-off-by: Piotr Tomiak <piotr@genuitec.com>
diff --git a/runtime/tesla/org.eclipse.rcptt.tesla.core.am/src/org/eclipse/rcptt/tesla/core/am/AspectManager.java b/runtime/tesla/org.eclipse.rcptt.tesla.core.am/src/org/eclipse/rcptt/tesla/core/am/AspectManager.java
index 0afc7cd..7f9e8a9 100644
--- a/runtime/tesla/org.eclipse.rcptt.tesla.core.am/src/org/eclipse/rcptt/tesla/core/am/AspectManager.java
+++ b/runtime/tesla/org.eclipse.rcptt.tesla.core.am/src/org/eclipse/rcptt/tesla/core/am/AspectManager.java
@@ -40,7 +40,7 @@
 
 	public static void activateAspect(String bundle, String aspect) {
 		addAspect(bundle, aspect);
-		if (Activator.getDefault().LOGGING) {
+		if (Activator.getDefault() != null && Activator.getDefault().LOGGING) {
 			System.out.println("Tesla: Activate aspect in bundle:" + bundle
 					+ " aspect:" + aspect);
 		}
@@ -68,7 +68,7 @@
 	}
 
 	public static void printInfo() {
-		if (Activator.getDefault().LOGGING) {
+		if (Activator.getDefault() != null && Activator.getDefault().LOGGING) {
 			// System.out.println("Tesla aspects information...");
 			for (BundleAspects ba : getAspects()) {
 				if (ba.getAspects().isEmpty()) {