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

NPE on /chat/Hello #102

Open
fatlotus opened this issue May 10, 2018 · 1 comment
Open

NPE on /chat/Hello #102

fatlotus opened this issue May 10, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@fatlotus
Copy link
Member

com.google.apphosting.runtime.jetty9.JettyLogger warn: /chat/Hello
java.lang.NullPointerException
	at codeu.model.data.User.addConversationFriend(User.java:229)
	at codeu.controller.ChatServlet.addConversationFriends(ChatServlet.java:281)
	at codeu.controller.ChatServlet.joinConversation(ChatServlet.java:377)
	at codeu.controller.ChatServlet.doPost(ChatServlet.java:173)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
	at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:125)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
	at com.google.apphosting.runtime.jetty9.SaveSessionFilter.doFilter(SaveSessionFilter.java:37)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
	at com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:60)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:48)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
@fatlotus fatlotus added the bug Something isn't working label May 10, 2018
@Mariamcm90
Copy link
Member

Mariamcm90 commented May 11, 2018

I looked into the NPE and it was caused by the addConversationFriend/removeConversationFriend methods being called on a user who was deleted from Datastore. I added a null pointer check but now the conversations that were having the issue won't load at all. I will look more into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants