summaryrefslogtreecommitdiffstats
path: root/starmath/source/mathmlimport.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/mathmlimport.hxx')
-rw-r--r--starmath/source/mathmlimport.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index 5ed8096300ac..e67e6a079bbe 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -254,6 +254,8 @@ public:
SmNodeStack & GetNodeStack() { return aNodeStack; }
SmNode *GetTree()
{
+ if (aNodeStack.empty())
+ return 0;
SmNode* result = aNodeStack.top();
aNodeStack.pop();
return result;