FELIX-1873: Fixed default httpcontext bug in whiteboard

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@881059 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/whiteboard/src/main/java/org/apache/felix/http/whiteboard/internal/manager/ExtenderManagerImpl.java b/http/whiteboard/src/main/java/org/apache/felix/http/whiteboard/internal/manager/ExtenderManagerImpl.java
index 2ebe6a2..fb191d1 100644
--- a/http/whiteboard/src/main/java/org/apache/felix/http/whiteboard/internal/manager/ExtenderManagerImpl.java
+++ b/http/whiteboard/src/main/java/org/apache/felix/http/whiteboard/internal/manager/ExtenderManagerImpl.java
@@ -98,7 +98,12 @@
     {
         Bundle bundle = ref.getBundle();
         String contextId = getStringProperty(ref, CONTEXT_ID_KEY);
-        return contextId != null ? this.contextManager.getHttpContext(bundle, contextId) : null;
+
+        if (contextId != null) {
+            return this.contextManager.getHttpContext(bundle, contextId);
+        } else {
+            return new DefaultHttpContext(bundle);
+        }
     }
 
     public void add(Filter service, ServiceReference ref)