diff --git a/dropwizard-core/src/main/java/com/yammer/dropwizard/config/Environment.java b/dropwizard-core/src/main/java/com/yammer/dropwizard/config/Environment.java
index <HASH>..<HASH> 100644
--- a/dropwizard-core/src/main/java/com/yammer/dropwizard/config/Environment.java
+++ b/dropwizard-core/src/main/java/com/yammer/dropwizard/config/Environment.java
@@ -309,8 +309,7 @@ public class Environment extends AbstractLifeCycle {
      * @param value    the value of the Jersey property
      * @see ResourceConfig
      */
-    public void setJerseyProperty(String name,
-                                  @Nullable Object value) {
+    public void setJerseyProperty(String name, @Nullable Object value) {
         config.getProperties().put(checkNotNull(name), value);
     }
 
@@ -535,7 +534,7 @@ public class Environment extends AbstractLifeCycle {
     }
 
     public void setJerseyServletContainer(ServletContainer jerseyServletContainer) {
-        this.jerseyServletContainer = jerseyServletContainer;
+        this.jerseyServletContainer = checkNotNull(jerseyServletContainer);
     }
 
     public String getName() {
Enforce the existence of a replacement Jersey container.

Fixes #<I>.