Skip to content

Commit ec95224

Browse files
committed
Fix: Get proper empty object in case of empty parent_fragment_loc
1 parent c510f5c commit ec95224

File tree

1 file changed

+1
-2
lines changed
  • M3GraphBuilder/converters

1 file changed

+1
-2
lines changed

M3GraphBuilder/converters/cpp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,7 @@ def add_methods(self, methods):
469469

470470
for m in methods.items():
471471
self.add_nodes("method", m)
472-
473-
parent_fragments_locs = self.containers_structures_simple_names.get(m[1]["parent"]).get("fullLocs")
472+
parent_fragments_locs = self.containers_structures_simple_names.get(m[1]["parent"], {}).get("fullLocs")
474473
if parent_fragments_locs:
475474

476475
for parent_loc in parent_fragments_locs:

0 commit comments

Comments
 (0)