PHP Notice 'yii\base\ErrorException' with message 'Trying to get property of non-object' 

in D:\www\zuanshixing\common\logic\GoodsLogic.php:41

Stack trace:
#0 D:\www\zuanshixing\common\logic\GoodsLogic.php(41): yii\base\ErrorHandler->handleError(8, 'Trying to get p...', 'D:\\www\\zuanshix...', 41, Array)
#1 D:\www\zuanshixing\frontend\controllers\GoodsController.php(79): common\logic\GoodsLogic::info('394')
#2 [internal function]: frontend\controllers\GoodsController->actionDetail('394')
#3 D:\www\zuanshixing\vendor\yiisoft\yii2\base\InlineAction.php(57): call_user_func_array(Array, Array)
#4 D:\www\zuanshixing\vendor\yiisoft\yii2\base\Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#5 D:\www\zuanshixing\vendor\yiisoft\yii2\base\Module.php(528): yii\base\Controller->runAction('detail', Array)
#6 D:\www\zuanshixing\vendor\yiisoft\yii2\web\Application.php(103): yii\base\Module->runAction('goods/detail', Array)
#7 D:\www\zuanshixing\vendor\yiisoft\yii2\base\Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#8 D:\www\zuanshixing\index.php(23): yii\base\Application->run()
#9 {main}