Skip to content

Commit b7d8861

Browse files
authored
Merge pull request Kitware#133 from v-kiniv/fix/crash-on-style-delete
Fix crash on style.delete()
2 parents 5ff3d53 + 0c0722f commit b7d8861

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/core/View.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,12 @@ export default class View extends Component {
427427
this.interactor.setInteractorStyle(null);
428428
}
429429

430-
this.style.delete();
430+
if (this.style) {
431+
this.style.delete();
432+
this.style = null;
433+
}
431434
this.defaultStyle.delete();
432435
this.defaultStyle = null;
433-
this.style = null;
434436
this.renderer = null;
435437
this.selector = null;
436438
this.orientationWidget = null;

0 commit comments

Comments
 (0)