Skip to content

Commit

Permalink
fix(configure write): fixed null reference exception
Browse files Browse the repository at this point in the history
  • Loading branch information
roehlerw committed Jun 17, 2020
1 parent 38f9709 commit 6f9cb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PluginMySQL/Plugin/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public override async Task<ConfigureWriteResponse> ConfigureWrite(ConfigureWrite
var uiJson = Write.GetUIJson();

// if first call
if (request.Form == null || request.Form.DataJson == "")
if (string.IsNullOrWhiteSpace(request.Form.DataJson) || request.Form.DataJson == "{}")
{
return new ConfigureWriteResponse
{
Expand Down

0 comments on commit 6f9cb80

Please sign in to comment.