Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception occured while getting the db data #239

Open
Huang-Jacky opened this issue Feb 5, 2025 · 0 comments
Open

Exception occured while getting the db data #239

Huang-Jacky opened this issue Feb 5, 2025 · 0 comments

Comments

@Huang-Jacky
Copy link

If attempting to retrieve data when the database has not been created yet, a null pointer exception will occur, causing the service to become unavailable. The exception stack trace is as follows:

Exception.
java.lang.NullPointerException: Attempt to read from field 'java.lang.Object android.util.Pair.first' on a null object reference in method 'void com.amitshekhar.server.RequestHandler.openDatabase(java.lang.String)'
at com.amitshekhar.server.RequestHandler.openDatabase(RequestHandler.java:186)
at com.amitshekhar.server.RequestHandler.getTableListResponse(RequestHandler.java:307)
at com.amitshekhar.server.RequestHandler.handle(RequestHandler.java:114)
at com.amitshekhar.server.ClientServer.run(ClientServer.java:78)
at java.lang.Thread.run(Thread.java:1012)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant