Skip to content

Commit a59c691

Browse files
Null data crash fix
1 parent 811ac36 commit a59c691

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.6.11",
4+
"version": "1.6.12",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/DataController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ DataController.prototype.popData = function () {
8282

8383
DataController.prototype.getData = function () {
8484

85-
return this._dataStack[this._dataStack.length - 1].data;
85+
return this._dataStack[this._dataStack.length - 1].data || {};
8686

8787
};
8888

0 commit comments

Comments
 (0)