We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc59743 commit 94ef913Copy full SHA for 94ef913
src/MXDocumentExtractor/Base.php
@@ -101,6 +101,9 @@ protected function getDiagramDOM( $mxfileXMLDOM ) {
101
$inflatedDiagramXML = base64_decode( $b64DiagramXML );
102
$urlencodedDiagramXML = gzinflate( $inflatedDiagramXML );
103
$diagramXmlString = urldecode( $urlencodedDiagramXML );
104
+ if ( empty( $diagramXmlString ) ) {
105
+ return null;
106
+ }
107
$documentXML = new DOMDocument();
108
$documentXML->loadXML( $diagramXmlString );
109
0 commit comments