Skip to content

Commit 21d696f

Browse files
authored
Fix #2335, there isn't a subject for a computed shape. (#2340)
1 parent 29eae9c commit 21d696f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Libs/Analyze/Shape.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ void Shape::set_id(int id) { id_ = id; }
381381

382382
//---------------------------------------------------------------------------
383383
void Shape::update_annotations() {
384+
if (!subject_) {
385+
return;
386+
}
384387
if (!subject_->get_original_filenames().empty()) {
385388
/// TODO: Show multiple lines of filenames for multiple domains?
386389
std::string filename = subject_->get_original_filenames()[0];

0 commit comments

Comments
 (0)