Skip to content

Commit 18aa2ad

Browse files
authored
Merge pull request #1219 from SherpasGroup/fix-teams-updating
Fix for conflict detection when updating teams
2 parents dbb9213 + 0892717 commit 18aa2ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/PnP.Framework/Utilities/Graph/GraphHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ bool canPatch
8181
if (!string.IsNullOrEmpty(alreadyExistsErrorMessage) &&
8282
!string.IsNullOrEmpty(matchingFieldName) &&
8383
!string.IsNullOrEmpty(matchingFieldValue) &&
84-
ex.InnerException.Message.Contains(alreadyExistsErrorMessage))
84+
(ex.InnerException?.Message.Contains(alreadyExistsErrorMessage) == true ||
85+
ex.InnerException?.InnerException?.Message.Contains(alreadyExistsErrorMessage) == true))
8586
{
8687
try
8788
{

0 commit comments

Comments
 (0)