Skip to content

Commit 3b7428e

Browse files
committed
Fix an exception on null args
1 parent d53dc85 commit 3b7428e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/angular-ui-notification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ angular.module('ui-notification').provider('Notification', function() {
4545
var notify = function(args, t){
4646
var deferred = $q.defer();
4747

48-
if (typeof args !== 'object') {
48+
if (typeof args !== 'object' || args === null) {
4949
args = {message:args};
5050
}
5151

src/angular-ui-notification.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ angular.module('ui-notification').provider('Notification', function() {
3838
var notify = function(args, t){
3939
var deferred = $q.defer();
4040

41-
if (typeof args !== 'object') {
41+
if (typeof args !== 'object' || args === null) {
4242
args = {message:args};
4343
}
4444

0 commit comments

Comments
 (0)