shin-chu / seek-for-android

Automatically exported from code.google.com/p/seek-for-android
0 stars 0 forks source link

A NULL exception from SEService.shutdown() #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What's the problem?
After SEService is connected, calling shutdown() without calling getReaders() 
will result in a NULL exception on SEService.  

Here is the partial code to produce the error:
    public void serviceConnected(SEService service) 
    {
        se = service;
        if ( se.isConnected() )
        {
            Log.d(LOG_TAG, "Before SEService shut down!");
            // Reader[] readers = se.getReaders();  /* uncomment it to prevent a NULL exception
            se.shutdown();
            Log.d(LOG_TAG, "After SEService shut down!");
        }
    }

What is the expected output? What do you see instead?
There should not be any exception thrown.

What version of the product are you using? On what operating system?

HTC Amaze 4G

Original issue reported on code.google.com by danny.w....@gmail.com on 3 Jan 2012 at 8:54

GoogleCodeExporter commented 9 years ago
Problem could be verified on 2.3.0 and 2.3.1-rc1

Original comment by Daniel.A...@gi-de.com on 2 Feb 2012 at 9:51

GoogleCodeExporter commented 9 years ago
Patch for 2.3.0 & 2.3.1-rc1 fixes the problem in SEService.java

Original comment by Daniel.A...@gi-de.com on 2 Feb 2012 at 11:47

Attachments:

GoogleCodeExporter commented 9 years ago
setting old issues from fixed to done

Original comment by Daniel.A...@gi-de.com on 5 Jul 2013 at 2:33