diff --git a/src/EventSubscriber/ExportRedirectSubscriber.php b/src/EventSubscriber/ExportRedirectSubscriber.php
index 6213e2a..1bee38a 100755
--- a/src/EventSubscriber/ExportRedirectSubscriber.php
+++ b/src/EventSubscriber/ExportRedirectSubscriber.php
@@ -96,7 +96,7 @@ class ExportRedirectSubscriber implements EventSubscriberInterface {
    *
    * @see Drupal\xls_views_data_export\Form\XlsExportForm::getViewArgs
    */
-  protected function getViewArgs(RouteMatchInterface $route_match = NULL){
+  protected function getViewArgs(?RouteMatchInterface $route_match = NULL){
     if(!isset($route_match)){
       return array();
     } else {
