File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Assets/QuickSheet/GDataPlugin/Editor/GDataDB/GDataDB/Impl Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -95,17 +95,19 @@ public T Deserialize(ListEntry e) {
95
95
char [ ] charToTrim = { ',' , ' ' } ;
96
96
str = str . TrimEnd ( charToTrim ) ;
97
97
98
- // split by ','
99
- object [ ] temp = str . Split ( DELIMETER ) ;
98
+ if ( ! string . IsNullOrEmpty ( str ) ) {
99
+ // split by ','
100
+ object [ ] temp = str . Split ( DELIMETER ) ;
100
101
101
- Array array = ( Array ) Activator . CreateInstance ( property . PropertyType , temp . Length ) ;
102
+ Array array = ( Array ) Activator . CreateInstance ( property . PropertyType , temp . Length ) ;
102
103
103
- for ( int i = 0 ; i < array . Length ; i ++ )
104
- {
105
- array . SetValue ( Convert . ChangeType ( temp [ i ] , property . PropertyType . GetElementType ( ) ) , i ) ;
106
- }
104
+ for ( int i = 0 ; i < array . Length ; i ++ )
105
+ {
106
+ array . SetValue ( Convert . ChangeType ( temp [ i ] , property . PropertyType . GetElementType ( ) ) , i ) ;
107
+ }
107
108
108
- property . SetValue ( r , array , null ) ;
109
+ property . SetValue ( r , array , null ) ;
110
+ }
109
111
}
110
112
}
111
113
else
You can’t perform that action at this time.
0 commit comments