SQLite4Unity3d icon indicating copy to clipboard operation
SQLite4Unity3d copied to clipboard

Use default if null object is returned

Open jwittner opened this issue 8 years ago • 1 comments

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.

jwittner avatar Oct 24 '17 23:10 jwittner

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

robertohuertasm avatar Nov 18 '17 23:11 robertohuertasm