rapidftr / tracker

The Issue Tracker for RapidFTR
2 stars 3 forks source link

Error on attempting to sync blacklisted device #232

Open tomclement opened 10 years ago

tomclement commented 10 years ago

Rather than the data on the device being wiped, performing a sync on a blacklisted device results in this error:

E/SyncAllDataTask( 3967): Error in sync
E/SyncAllDataTask( 3967): java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
E/SyncAllDataTask( 3967):   at com.rapidftr.service.DeviceService.getDeviceWipeFlag(DeviceService.java:55)
E/SyncAllDataTask( 3967):   at com.rapidftr.service.DeviceService.wipeData(DeviceService.java:45)
E/SyncAllDataTask( 3967):   at com.rapidftr.task.SyncAllDataAsyncTask.sync(SyncAllDataAsyncTask.java:39)
E/SyncAllDataTask( 3967):   at com.rapidftr.task.SynchronisationAsyncTask.doInBackground(SynchronisationAsyncTask.java:60)
E/SyncAllDataTask( 3967):   at com.rapidftr.task.SynchronisationAsyncTask.doInBackground(SynchronisationAsyncTask.java:25)
E/SyncAllDataTask( 3967):   at android.os.AsyncTask$2.call(AsyncTask.java:287)
E/SyncAllDataTask( 3967):   at java.util.concurrent.FutureTask.run(FutureTask.java:234)
E/SyncAllDataTask( 3967):   at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
E/SyncAllDataTask( 3967):   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
E/SyncAllDataTask( 3967):   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
E/SyncAllDataTask( 3967):   at java.lang.Thread.run(Thread.java:841)