onebite2
asked on
Checking String Value in vb.net
What is the issue in the if clause below??I am getting 'Object reference not set to an instance of an object.'
This is the clause I need to implement 'if Risk Assessment Type is NOT Equal to "ManualUnderwriting" or Null (or Blank), a valid value is required. '
Dim inRiskAssmtType As String = GetSafeParsedString(Row.in RISKASSMTT YPE).ToUpp er()
If Row.inRISKASSMTTYPE_IsNull = True OrElse inRiskAssmtType <>"MANUALUNDERWRITING" Then
Throw New Exception(" value is required for ,risk assessment type '" + Row.inRISKASSMTTYPE.ToStri ng() + "'")
End If
Thanks in advance!!!!
This is the clause I need to implement 'if Risk Assessment Type is NOT Equal to "ManualUnderwriting" or Null (or Blank), a valid value is required. '
Dim inRiskAssmtType As String = GetSafeParsedString(Row.in
If Row.inRISKASSMTTYPE_IsNull
Throw New Exception(" value is required for ,risk assessment type '" + Row.inRISKASSMTTYPE.ToStri
End If
Thanks in advance!!!!
Your exception uses Row.inRISKASSMTTYPE.ToStri ng() in a scenario where Row.inRISKASSMTTYPE can be null.
ASKER
@Jared_S
how should we change the if statement to match the clause I had??I appreciate if you can change it and give here.
Thanks!!
how should we change the if statement to match the clause I had??I appreciate if you can change it and give here.
Thanks!!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.