Update change log and spec for wrt-plugins-tizen_0.4.38
[framework/web/wrt-plugins-tizen.git] / src / Filesystem / EventListNodes.cpp
index f5b1659..c169442 100755 (executable)
@@ -17,7 +17,7 @@
 
  
 #include "EventListNodes.h"
-#include <dpl/assert.h>
+#include <Commons/Exception.h>
 #include "INode.h"
 #include "Enums.h"
 
@@ -25,7 +25,10 @@ namespace DeviceAPI {
 namespace Filesystem {
 EventListNodes::EventListNodes(const INodePtr& node) : m_node(node)
 {
-    Assert(m_node && "Node can't be NULL.");
+       if (node == NULL)
+       {
+               ThrowMsg(WrtDeviceApis::Commons::PlatformException, "Can not new an object");
+       }
 }
 
 INodePtr EventListNodes::getNode() const
@@ -55,4 +58,4 @@ void EventListNodes::setResult(const NodeList& list)
 
 
 } // Filesystem
-} // TizenApis
\ No newline at end of file
+} // TizenApis