diff --git a/test/jasmine/tests/select_test.js b/test/jasmine/tests/select_test.js index 3d345c63a3a..e9962d33e59 100644 --- a/test/jasmine/tests/select_test.js +++ b/test/jasmine/tests/select_test.js @@ -1996,7 +1996,10 @@ describe('Test select box and lasso per trace:', function() { return function(expected) { var msg = '(call #' + callNumber + ') lasso points '; - var lassoPoints = selectedData.lassoPoints || {}; + var lassoPoints = {}; + if (selectedData && selectedData.lassoPoints) { + lassoPoints = selectedData.lassoPoints; + } if(subplot) { expect(lassoPoints[subplot] || [])