netpyoung / SqlCipher4Unity3D

💾 SqlCipher made easy for Unity3d
MIT License
163 stars 37 forks source link

Every thing works fine in editor. but in android. It gives error like this... #46

Open alan113101 opened 1 year ago

alan113101 commented 1 year ago

I use SQLiteConnection.Find() method. works fine in editor(windows). Can get the all from db file. When I built apk. and run at android. I got error like this.

Error and callstack from unity: Exception: NullReferenceException: Object reference not set to an instance of an object SqlCipher4Unity3D.TableQuery1[T].CompileExpr (System.Linq.Expressions.Expression expr, System.Collections.Generic.List1[T] queryArgs) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].CompileExpr (System.Linq.Expressions.Expression expr, System.Collections.Generic.List1[T] queryArgs) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].GenerateCommand (System.String selectionList) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].ToList () (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.TableQuery1[T].FirstOrDefault () (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0) SqlCipher4Unity3D.SQLiteConnection.Find[T] (System.Linq.Expressions.Expression1[TDelegate] predicate) (at <1c14786c7c7f40dcafd3914ea4c2c6b9>:0)