Skip to content

Commit

Permalink
Bug 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
cdy816 committed May 29, 2021
1 parent 200d8b6 commit 4b393c6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ public string Name
}
set
{
if (mModel.Name != value)
if (mModel != null && mModel.Name != value)
{
mModel.Name = value;
OnPropertyChanged("Name");
Expand All @@ -1921,7 +1921,7 @@ public string DatabaseName
}
set
{
if (mModel.DatabaseName != value)
if (mModel != null && mModel.DatabaseName != value)
{
mModel.DatabaseName = value;
OnPropertyChanged("DatabaseName");
Expand All @@ -1940,7 +1940,7 @@ public int Direction
}
set
{
if ((int)mModel.DataTranseDirection != value)
if (mModel != null && (int)mModel.DataTranseDirection != value)
{
mModel.DataTranseDirection = (DataTransType)value;
IsChanged = true;
Expand Down Expand Up @@ -1973,7 +1973,7 @@ public string DeviceInfo
}
set
{
if (mModel.DeviceInfo != value)
if (mModel!=null && mModel.DeviceInfo != value)
{
mModel.DeviceInfo = value;
IsChanged = true;
Expand Down

0 comments on commit 4b393c6

Please sign in to comment.