Use GetNullable

This commit is contained in:
Infi 2023-02-26 15:16:03 +01:00
parent 900c05cdeb
commit 4acadd5c9e

View file

@ -201,7 +201,7 @@ public sealed class DalamudPluginInterface : IDisposable
/// <returns>Returns false if the DalamudInterface was null.</returns> /// <returns>Returns false if the DalamudInterface was null.</returns>
public bool OpenPluginInstaller() public bool OpenPluginInstaller()
{ {
var dalamudInterface = Service<DalamudInterface>.Get(); var dalamudInterface = Service<DalamudInterface>.GetNullable(); // Can be null during boot
if (dalamudInterface == null) if (dalamudInterface == null)
{ {
return false; return false;