robertohuertasm / SQLite4Unity3d

SQLite made easy for Unity3d
MIT License
1.28k stars 265 forks source link

Use default if null object is returned #76

Open jwittner opened 6 years ago

jwittner commented 6 years ago

Ran into this issue when summing up several rows - sometimes there would be no entry and we'd hit a null deref when T was a value type, e.g. float. I'm hoping the default value is acceptable in these cases.

robertohuertasm commented 6 years ago

@jwittner, I'm not sure if this will impact in nullable types. I'll have to test it.