Skip to content

Commit

Permalink
bugfix: NPE in SelectedRagdoll
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 24, 2025
1 parent f6dca4c commit 9062429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
The com.jme3 software packages are Copyright (c) 2009-2019 jMonkeyEngine
The maud software packages are Copyright (c) 2017-2024 Stephen Gold
The maud software packages are Copyright (c) 2017-2025 Stephen Gold

All rights reserved.

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/maud/model/cgm/SelectedRagdoll.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2018-2023, Stephen Gold
Copyright (c) 2018-2025 Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -298,7 +298,7 @@ void setCgm(Cgm newCgm) {
Spatial setSpatial(Spatial newSpatial) {
CgmPhysics physics = cgm.getPhysics();
DynamicAnimControl dac = find();
Spatial oldSpatial = dac.getSpatial();
Spatial oldSpatial = (dac == null) ? null : dac.getSpatial();
if (oldSpatial != null) {
physics.removePhysicsControl(dac);

Expand Down

0 comments on commit 9062429

Please sign in to comment.