Index: src/FilterEngine.cpp |
diff --git a/src/FilterEngine.cpp b/src/FilterEngine.cpp |
index 96c4571fbf593f47041bd3415fc44d73f55da7f1..013d21dcd7d0c62177e80436734fdbaf3b84dd7d 100644 |
--- a/src/FilterEngine.cpp |
+++ b/src/FilterEngine.cpp |
@@ -265,7 +265,12 @@ NotificationPtr FilterEngine::GetNextNotificationToShow(const std::string& url) |
{ |
params.push_back(jsEngine->NewValue(url)); |
} |
- return Notification::JsValueToNotification(func->Call(params)); |
+ auto jsNotification = func->Call(params); |
Felix Dahlke
2015/01/27 13:09:09
C++03! :)
sergei
2015/01/27 13:20:12
fixed, sorry
|
+ if (!jsNotification->IsObject()) |
+ { |
+ return NotificationPtr(); |
+ } |
+ return NotificationPtr(new Notification(jsNotification)); |
} |
AdblockPlus::FilterPtr FilterEngine::Matches(const std::string& url, |