Linked issue: #767
Hi guys, I am getting the same error as the closed issue above, but with 0.4.4 and 0.5.0 this time. Are we sure that all cases were fixed?
query Feed() {
feed() {
__typename
elements {
__typename
aaa {
...FragmentA
}
}
}
}
fragment FragmentA on AAA {
__typename
bbb {
...FragmentB
}
}
fragment FragmentB on BBB {
__typename
... on One {
__typename
id
}
}
BBB has two types, One and Two. If Two is not specified then I get the:
ApolloParseException: Failed to parse http response
Caused by: java.lang.NullPointerException: FragmentB == null
at com.apollographql.apollo.api.internal.Utils.checkNotNull(Utils.java:27)
bbb is actually a nullable type in the schema.
PS: It works on 0.4.2, but doesn't on 0.4.3, 0.4.4 and 0.5.0.
Is the any way to see the part of your schema for BBB. Plus could you please send generated class for FragmentA and FragmentB you have.
Hi @sav007 , please find the information you requested below.
The problematic code can be found in the auto-generated FragmentA.java class, line 308.

The Utils.checkNotNull(...) will cause the parsing failure.
The below replicated the problem:
Most helpful comment
Hi @sav007 , please find the information you requested below.
The problematic code can be found in the auto-generated
FragmentA.javaclass, line 308.The
Utils.checkNotNull(...)will cause the parsing failure.The below replicated the problem: