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

Core throws a null pointer exception when getting a user that does not exist #9

Open
fracture91 opened this issue Apr 12, 2013 · 1 comment
Labels

Comments

@fracture91
Copy link
Owner

For example, visit http://localhost:8080/WPISuite/API/core/user/someonethatdoesntexist

java.lang.NullPointerException
    edu.wpi.cs.wpisuitetng.ManagerLayer.read(ManagerLayer.java:215)
    edu.wpi.cs.wpisuitetng.WPICoreServlet.doGet(WPICoreServlet.java:58)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

It should give a 404 Not Found instead

@tmwack
Copy link
Collaborator

tmwack commented Apr 12, 2013

The null pointer exception should be fixed on
master-hotfix-getErrorResponses. I cannot verify this until I return from
NY.

Applying that hotfix should get you to a 500 error response and is
necessary to getting to the proper response.

On Thursday, April 11, 2013, Andrew Hurle wrote:

For example, visit
http://localhost:8080/WPISuite/API/core/user/someonethatdoesntexist

java.lang.NullPointerException
edu.wpi.cs.wpisuitetng.ManagerLayer.read(ManagerLayer.java:215)
edu.wpi.cs.wpisuitetng.WPICoreServlet.doGet(WPICoreServlet.java:58)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

It should give a 404 Not Found instead


Reply to this email directly or view it on GitHubhttps://github.com//issues/9
.

Tyler

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

No branches or pull requests

2 participants