diff --git a/src/DeepLinkModule/javasource/deeplink/implementation/handler/DeeplinkHandler.java b/src/DeepLinkModule/javasource/deeplink/implementation/handler/DeeplinkHandler.java index 134daaa..5e3d6ed 100644 --- a/src/DeepLinkModule/javasource/deeplink/implementation/handler/DeeplinkHandler.java +++ b/src/DeepLinkModule/javasource/deeplink/implementation/handler/DeeplinkHandler.java @@ -35,7 +35,8 @@ protected void processRequest(IMxRuntimeRequest request, IMxRuntimeResponse resp * a 200 OK tells word the end of the redirect is reached, and it will happily open the * original URL in your default browser... */ - if (request.getHeader("User-Agent").toLowerCase().contains("office")) { + String userAgent = request.getHeader("User-Agent"); + if (userAgent != null && userAgent.toLowerCase().contains("office")) { response.setStatus(IMxRuntimeResponse.OK); return; }