diff --git a/src/main/java/no/digipost/signature/client/core/internal/ClientHelper.java b/src/main/java/no/digipost/signature/client/core/internal/ClientHelper.java
index <HASH>..<HASH> 100644
--- a/src/main/java/no/digipost/signature/client/core/internal/ClientHelper.java
+++ b/src/main/java/no/digipost/signature/client/core/internal/ClientHelper.java
@@ -248,6 +248,10 @@ public class ClientHelper {
         } catch (Exception e) {
             return new UnexpectedResponseException(null, e, status, OK);
         }
+        if (error == null) {
+            return new UnexpectedResponseException(null, status, OK);
+        }
+
         if (BROKER_NOT_AUTHORIZED.sameAs(error.getErrorCode())) {
             return new BrokerNotAuthorizedException(error);
         }
Avoid nullpointer on server errors without response body