Monvita: NPE Klientenstammdatenblatt gefixt (trat vereinzelt auf)
This commit is contained in:
@@ -108,7 +108,8 @@ namespace Monvita
|
||||
|
||||
private bool IsGesetzlBetreuer(CustomerPersonRelationDC c2P)
|
||||
{
|
||||
if (c2P.RelationRole != null && c2P.RelationRole.TypeDescription.ToLower() == "gesetzlicher vertreter")
|
||||
if (c2P.RelationRole != null && c2P.RelationRole.TypeDescription != null
|
||||
&& c2P.RelationRole.TypeDescription.ToLower() == "gesetzlicher vertreter")
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -117,7 +118,7 @@ namespace Monvita
|
||||
|
||||
private bool IsBehandler(CustomerPersonRelationDC c2P)
|
||||
{
|
||||
if (c2P.RelationRole != null && (
|
||||
if (c2P.RelationRole != null && c2P.RelationRole.TypeDescription != null && (
|
||||
c2P.RelationRole.TypeDescription.ToLower().Contains("diabetholog") ||
|
||||
c2P.RelationRole.TypeDescription.ToLower() == "hausarzt" ||
|
||||
c2P.RelationRole.TypeDescription.ToLower().Contains("logopäd") ||
|
||||
|
||||
Reference in New Issue
Block a user