Prevent invoke on null references
This commit is contained in:
parent
914d6ad868
commit
89f44a8856
1 changed files with 2 additions and 2 deletions
|
|
@ -219,7 +219,6 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
|
|||
|
||||
public override void ShareItem(int itemIndexToShare)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void CloudSyncStatusChanged(object sender, EventArgs eventArgs)
|
||||
|
|
@ -227,7 +226,8 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
|
|||
var e = eventArgs as ApplicationController.CloudSyncEventArgs;
|
||||
|
||||
// If signing out, we need to force selection to this provider
|
||||
if (e != null && !e.IsAuthenticated)
|
||||
if (e?.IsAuthenticated == false
|
||||
&& SetCurrentLibraryProvider != null)
|
||||
{
|
||||
// Switch to the selector
|
||||
SetCurrentLibraryProvider(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue