Skip to content

Commit a27b211

Browse files
committed
fix:修复被取值obj=null的问题
1 parent 3428cbd commit a27b211

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/MiniWord/MiniWord.Implment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ private static object GetObjVal(object objSource, string propNames)
202202
/// <exception cref="Exception"></exception>
203203
private static object GetObjVal(object objSource, string[] propNames)
204204
{
205+
if(objSource == null) return null;
206+
205207
var nextPropNames = propNames.Skip(1).ToArray();
206208
if (objSource is IDictionary)
207209
{

0 commit comments

Comments
 (0)