Hi,
it's most likely the way you save your calss in FsmObject. attackingUnitObject is likely empty.
is attackingUnit a behavior? if it is, simply store the gameObject and use GetComponent<Unit>() to get it properly.
without more context, it's difficult to know why attackingUnitObject is empty, and I don't own RTSFramework unfortunatly.
Bye,
Jean