Skip to content

Commit

Permalink
Fix null reference exception if missing opts
Browse files Browse the repository at this point in the history
  • Loading branch information
smithkl42 committed Jan 14, 2014
1 parent ff44d2c commit 250d7ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ng-grid-csv-export.js
Expand Up @@ -71,7 +71,7 @@ function ngGridCsvExportPlugin (opts) {
}
return hash;
};
if (opts.customDataWatcher) {
if (opts && opts.customDataWatcher) {
scope.$watch(opts.customDataWatcher, showDs);
} else {
scope.$watch(scope.catHashKeys, showDs);
Expand Down

0 comments on commit 250d7ac

Please sign in to comment.