Skip to content

Commit 7ce7a3b

Browse files
committed
null check
1 parent 5fd63d7 commit 7ce7a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Neo.CLI/CLI/MainService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ static string GetExceptionMessage(Exception exception)
613613

614614
public UInt160 ResolveNeoNameServiceAddress(string domain)
615615
{
616-
if (Settings.Default.NNS.Contract == UInt160.Zero)
616+
if (Settings.Default.NNS.Contract == null || Settings.Default.NNS.Contract == UInt160.Zero)
617617
throw new Exception("Neo Name Service (NNS): is disabled on this network.");
618618

619619
using var sb = new ScriptBuilder();

0 commit comments

Comments
 (0)