From 5f741086a9a9e56905e8810e63ca6822d0f4caee Mon Sep 17 00:00:00 2001 From: rrene Date: Tue, 21 Nov 2023 09:08:15 -0700 Subject: [PATCH] -- validacion adicional --- Ashx/CargaEventos.ashx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ashx/CargaEventos.ashx b/Ashx/CargaEventos.ashx index 3e8039f23..3fdd5326a 100644 --- a/Ashx/CargaEventos.ashx +++ b/Ashx/CargaEventos.ashx @@ -420,7 +420,7 @@ Public Class CargaEventos : Implements IHttpHandler, IRequiresSessionState ReadOnly Property UsuarioActual(ByVal context As HttpContext) As Usuario Get - UsuarioActual = DirectCast(context.Session("UsuarioSIG"), Usuario) + UsuarioActual = DirectCast(If(context IsNot Nothing, context.Session("UsuarioSIG", Nothing)), Usuario) End Get End Property