Skip to content

Commit

Permalink
Cherry pick branch 'genexuslabs:CastErrorInGXNavigationHelper' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
iroqueta committed Mar 2, 2023
1 parent da66ee1 commit 0efc37d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion java/src/main/java/com/genexus/internet/HttpContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,16 @@ protected GXNavigationHelper getNavigationHelper()

protected GXNavigationHelper getNavigationHelper(boolean useWebSession)
{
GXNavigationHelper helper = (GXNavigationHelper)getSessionValue(GX_NAV_HELPER);
GXNavigationHelper helper;
try
{
helper = (GXNavigationHelper) getSessionValue(GX_NAV_HELPER);
}
catch (Exception e)
{
//If it gives an error to recover the GXNavigationHelper from the session then I start with a new GXNavigationHelper to avoid a runtime error
helper = null;
}
if (helper == null)
{
helper = new GXNavigationHelper();
Expand Down

0 comments on commit 0efc37d

Please sign in to comment.