Skip to content

Commit

Permalink
Fix null bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Apr 26, 2024
1 parent 01eb7c2 commit 63675af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions comodo2/src/comodo2/templates/qpc/c/StateMachineSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,9 @@ else if (t.getTarget() instanceof State){
* Returns the QPC-specific return statement for a transition to stateName
*/
public String transitionToStateMacro(State s){
if (s == null){
return null;
}
if (Objects.equal(s.getName(), "")){
return null;
}
Expand Down

0 comments on commit 63675af

Please sign in to comment.