java.lang.ClassCastException: org.json.JSONObject$Null cannot be cast to java.lang.String

GitHub | pzitoun | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Github auth

    GitHub | 1 year ago | pzitoun
    java.lang.ClassCastException: org.json.JSONObject$Null cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.json.JSONObject$Null cannot be cast to java.lang.String

      at com.pawelniewiadomski.jira.openid.authentication.providers.GitHubProviderType.getUsernameAndEmail()
    2. com.pawelniewiadomski.jira
      OAuthCallbackServlet.doGet
      1. com.pawelniewiadomski.jira.openid.authentication.providers.GitHubProviderType.getUsernameAndEmail(GitHubProviderType.java:93)
      2. com.pawelniewiadomski.jira.openid.authentication.servlet.OAuthCallbackServlet.doGet(OAuthCallbackServlet.java:80)
      2 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      2 frames