diff --git a/container/api/src/main/java/org/wildfly/swarm/container/Container.java b/container/api/src/main/java/org/wildfly/swarm/container/Container.java
index <HASH>..<HASH> 100644
--- a/container/api/src/main/java/org/wildfly/swarm/container/Container.java
+++ b/container/api/src/main/java/org/wildfly/swarm/container/Container.java
@@ -169,8 +169,10 @@ public class Container {
      * @return The container.
      */
     public Container fraction(Fraction fraction) {
-        this.fractions.put(fractionRoot(fraction.getClass()), fraction);
-        fraction.initialize(new InitContext());
+        if ( fraction != null ) {
+            this.fractions.put(fractionRoot(fraction.getClass()), fraction);
+            fraction.initialize(new InitContext());
+        }
         return this;
     }
Logstash fraction test but not a super great one.