You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/11 10:57:49 UTC

[GitHub] lakshmana opened a new issue #368: Fatal error if InAppBrowser is close immediately

lakshmana opened a new issue #368: Fatal error if InAppBrowser is close immediately
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/368
 
 
   I have this error when the inAppBrowser is close soon enough ( for eg within  1 sec )
   
   > `java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.inappbrowser.InAppBrowserDialog.show()' on a null object reference`
   
   I could solve the problem by adding a null check on line no. 282 on inAppBrowser.java as follows
   replace `dialog.show();` with `if(dialog != null) dialog.show();`
   
   I am not an expert on java android and so can someone confirm this fix or give a good way to fix the problem.
   
   Thx

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org