From ad929105010b91e6b7a80ed19e221674598b3424 Mon Sep 17 00:00:00 2001
From: osman <osman@70527.no-reply.drupal.org>
Date: Mon, 5 Sep 2016 16:47:26 -0500
Subject: [PATCH] Issue #2785717 by osman: registerNamespaces() method should
 check existence of `namespaces`

---
 src/Plugin/migrate_plus/data_parser/Xml.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Plugin/migrate_plus/data_parser/Xml.php b/src/Plugin/migrate_plus/data_parser/Xml.php
index c27922a9..e552cb08 100644
--- a/src/Plugin/migrate_plus/data_parser/Xml.php
+++ b/src/Plugin/migrate_plus/data_parser/Xml.php
@@ -300,7 +300,7 @@ class Xml extends DataParserPluginBase implements ContainerFactoryPluginInterfac
    *   The element to apply namespace registrations to.
    */
   protected function registerNamespaces(\SimpleXMLElement $xml) {
-    if (is_array($this->configuration['namespaces'])) {
+    if (isset($this->configuration['namespaces']) && is_array($this->configuration['namespaces'])) {
       foreach ($this->configuration['namespaces'] as $prefix => $ns) {
         $xml->registerXPathNamespace($prefix, $ns);
       }
-- 
GitLab