Skip to content

Commit b02b215

Browse files
committed
fix possible null
1 parent cb8868f commit b02b215

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Components/NBrightBuyController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public NBrightInfo GetData(int itemId, string typeCodeLang, string lang = "",boo
409409
if (rtnInfo == null)
410410
{
411411
rtnInfo = CBO.FillObject<NBrightInfo>(DataProvider.Instance().Get(itemId, typeCodeLang, lang));
412+
if (rtnInfo == null) rtnInfo = new NBrightInfo();
412413
if (rtnInfo.Lang == "")
413414
{
414415
// record does not exists, so add lang

0 commit comments

Comments
 (0)