diff -r 9a9a761f03f1 -r 0ed94ceaa377 webengine/osswebengine/WebKit/s60/plugins/NpnImplementation.cpp --- a/webengine/osswebengine/WebKit/s60/plugins/NpnImplementation.cpp Tue Nov 24 09:02:20 2009 +0200 +++ b/webengine/osswebengine/WebKit/s60/plugins/NpnImplementation.cpp Thu Dec 17 09:20:16 2009 +0200 @@ -21,7 +21,7 @@ #include "NpnImplementation.h" #include "PluginWin.h" #include "PluginSkin.h" -#include +#include #include #include #include @@ -481,7 +481,19 @@ { PluginWin* pluginWin = (PluginWin*)aInstance->ndata; if (pluginWin) { - TPoint* cursorPos = static_cast(aSetValue); + TPoint* cursorPos; + + //EPMR-7XPHXV aSetValue is set as "(void*) 1" from + //"CBrowserPluginControl::GoNormalScreenL" from the flash plugin + //to avoid the Invalid pointer access, we are checking for + //aSetValue and setting point as (0,0) and also for NULL Value + if((aSetValue == (void*)1) || (!aSetValue)) { + TPoint position(0,0); + cursorPos = static_cast(&position); + } + else { + cursorPos = static_cast(aSetValue); + } pluginWin->pluginDeactivate(*cursorPos); } }