[Prevent] Issue 52063
authorTomasz Iwanek <t.iwanek@samsung.com>
Tue, 30 Apr 2013 09:41:50 +0000 (11:41 +0200)
committerTomasz Iwanek <t.iwanek@samsung.com>
Tue, 30 Apr 2013 09:41:50 +0000 (11:41 +0200)
[Issue#]       LINUXWRT-235
[Bug]          Return statement with no value
[Cause]        N/A
[Solution]     Fix macro use
[Verification] Build repo.

Change-Id: Ia651c11ed696a820cb6e02927e8119a51666f696

src/plugin-loading/plugin_logic.cpp

index 08d056a..aef6950 100644 (file)
@@ -433,7 +433,10 @@ void PluginLogic::Impl::dispatchJavaScriptEvent(JSGlobalContextRef context,
 
 unsigned int PluginLogic::Impl::windowHandle() const
 {
-    PLUGIN_LOGIC_SANITY_CHECK
+    if (!s_sanityCheck)
+    {
+        LogError("Object is not available. Wrong flow occured");
+    }
     return m_windowHandle;
 }