-
Notifications
You must be signed in to change notification settings - Fork 190
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
NullPointerException: null #227
Comments
Hi, I'm using 2.11.8 and Spray-json 1.3.2
…On Thu, Apr 27, 2017 at 8:40 PM, Hector Veiga ***@***.***> wrote:
We are seeing the same issue with Scala 2.12 Spray-Json 1.3.3. @Boyfox
<https://github.com/boyfox> which version are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#227 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADBZtpid82yrAYSBGd1dtuS2YqiA9FcNks5r0Lb6gaJpZM4NG_0I>
.
|
@Boyfox can you paste how you have your jsonFormat implicits? |
Hi, here declared implicit: |
You need to define implicit JsonFormatters for Place, GPositions and OAuthPlatform... that is for sure. What I also noticed, please correct me if I am wrong... the order matters, Place, GPositions and OAuthPlatform formatters need to be defined before the UserResp formatter. However, the NullPointerException is kind of bad and probably should be addressed. |
ok, I fixed, thank you, you can close or delete this issue |
Just curios... don't you guys want to fix this NPE? |
I did not investigate deeply enough to know, let's re-open this however we're not actively working on it right now. If you're interested a pull request would be really welcome |
sounds good. I will have a look. I was planning to raise the NPE issue, but found this thread. |
For future readers: |
Hi, I have following a case class:
this is Place case class:
this is GPositions case class:
Appears always following error on Runtime:
I don't understand why appears this error, I did not use recursive types
The text was updated successfully, but these errors were encountered: