diff --git a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
index 5a69a9c9032021984e9b4159cac27ba7020eafe0..e333f3cc5f58fa0710e5c13d739e4124ece95866 100644
--- a/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
+++ b/apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java
@@ -89,7 +89,8 @@ public class I2PSnarkServlet extends DefaultServlet {
     
     @Override
     public void destroy() {
-        _manager.stop();
+        if (_manager != null)
+            _manager.stop();
         super.destroy();
     }