lib: fix more call on nullable receiver warnings
[nit.git] / lib / neo4j / graph / json_graph_store.nit
index 8ac55cc..618a1d3 100644 (file)
@@ -309,7 +309,7 @@ redef class NeoEdge
        # Use the IDs specfied by `graph.nodes`.
        redef fun append_json_for(graph, buffer) do
                buffer.append "\{\"type\":"
-               rel_type.append_json(buffer)
+               rel_type.as(not null).append_json(buffer)
                buffer.append ",\"properties\":"
                properties.append_json(buffer)
                buffer.append ",\"from\":"