Skip to content

Commit

Permalink
fix:修复被取值obj=null的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangx036 committed Oct 30, 2024
1 parent 3428cbd commit a27b211
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MiniWord/MiniWord.Implment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ private static object GetObjVal(object objSource, string propNames)
/// <exception cref="Exception"></exception>
private static object GetObjVal(object objSource, string[] propNames)
{
if(objSource == null) return null;

var nextPropNames = propNames.Skip(1).ToArray();
if (objSource is IDictionary)
{
Expand Down

0 comments on commit a27b211

Please sign in to comment.