Hi ,

I am getting Null pointer Exception from the SyncStorageEngine.

Version : Donut

The below are the authority lists before account updation.(Youtube
accountis different)

 accountName => [[email protected]], authorityName => [gmail-ls]
 accountName => [[email protected]], authorityName => [calendar]
accountName => [[email protected]], authorityName => [contacts]
 accountName => [[email protected]], authorityName =>
[subscribedfeeds]
 accountName => [[email protected]], authorityName => [contacts]
 accountName => [[email protected]], authorityName =>
[com.pants.android.rss.sc.lite.RSSItem]

This is the exception trace from log-cat,

W/dalvikvm( 1235): threadid=87: thread exiting with uncaught exception
(group=0x2aac9a08)
E/AndroidRuntime( 1235): Uncaught handler: thread Thread-44 exiting
due to uncaught exception
E/AndroidRuntime( 1235): *** EXCEPTION IN SYSTEM PROCESS.  System will
crash.
D/MountListener( 1235): handleEvent volume_mounted:/sdcard
E/AndroidRuntime( 1235): java.lang.NullPointerException at
android.content.SyncStorageEngine.writeAccountInfoLocked(SyncStorageEngine.java:
1226)
E/AndroidRuntime( 1235):  at
android.content.SyncStorageEngine.doDatabaseCleanup(SyncStorageEngine.java:
627)
E/AndroidRuntime( 1235):  at android.content.SyncManager
$5.onAccountsUpdated(SyncManager.java:316)
E/AndroidRuntime( 1235):  at android.accounts.AccountMonitor
$AccountUpdater.run(AccountMonitor.java:82)

As per my source the writeAccountInfoLocked() at line no 1226 is

 out.attribute(null, "id", Integer.toString(authority.ident));

So it should be the authority is Null.

Please tell me why this exception is coming?...Only in some devices
this happening & this crashing the system server.

As per my analysis :
When boot time the accounts will be updated from
GoogleLoginService ,and the accounts will be sync with the sync.xml,by
writeAccountInfoLocked().

somthing wrong in the below code!!!? in
SyncStorageEngine.writeAccountInfoLocked()
final int N = mAuthorities.size();
            for (int i=0; i<N; i++) {
                AuthorityInfo authority = mAuthorities.get(i);//////Is
it right? ....The key vaules are 0.....N ,but the
//doDatabaseCleanup() mAuthorities removal based on checking the
Accountinfo.ident,

What happen if any authority removed in between 0...N ,by
doDatabaseCleanup().



Thanks & Regards
Rajesh Gopu

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to