Hi
I am using get text activity to fetch a text on ui, and enclosing that get text in try catch,
in catch i have used system.exception
and after that i am using if condition to check if msgBox.Equals(“founnd”)
In this scenario it working fine when the text is found on ui if not found then it should assign some other value in my var
but it showing nothing and through me error

logs
RemoteException wrapping System.NullReferenceException: Object reference not set to an instance of an object.
at Namespace_78de.checkForMedicareHandling_Expressions.checkForMedicareHandling_Expressions_TypedDataContext4_ForReadOnly.__Expr4Get()
at Namespace_78de.checkForMedicareHandling_Expressions.checkForMedicareHandling_Expressions_TypedDataContext4_ForReadOnly.ValueType___Expr4Get()
at Namespace_78de.checkForMedicareHandling_Expressions.InvokeExpression(Int32 expressionId,
IList1 locations, ActivityContext activityContext) at Microsoft.VisualBasic.Activities.VisualBasicValue
1.Execute(CodeActivityContext context)
at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance,
Activity1 expressionActivity) at System.Activities.InArgument
1.TryPopulateValue(LocationEnvironment targetEnvironment,
ActivityInstance activityInstance,
ActivityExecutor executor)
at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument,
Int32 nextArgumentIndex,
ActivityExecutor executor,
IDictionary2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate) at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary
2 argumentValueOverrides,
Location resultLocation,
Int32 startIndex)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,
BookmarkManager bookmarkManager,
Location resultLocation)
Attached ss as as well.