The action object attached to a transition can be null (internal action), leading to a null pointer exception when trying to call the toString method. + test case