修改:ma为null导致的bug

This commit is contained in:
joylink_zhangsai 2021-07-16 17:12:06 +08:00
parent ce176c1035
commit 08068ebf21

View File

@ -32,6 +32,8 @@ public class OnboardAtpApiServiceImpl implements OnboardAtpApiService {
@Override
public void updateMA4CBTC(VirtualRealityTrain train, MovementAuthority ma) {
if (ma == null)
return;
if (!train.isAtpOn()) {
return;
}
@ -48,6 +50,8 @@ public class OnboardAtpApiServiceImpl implements OnboardAtpApiService {
@Override
public void updateMA4ITC(VirtualRealityTrain train, MovementAuthority ma) {
if (ma == null)
return;
if (!train.isAtpOn()) {
return;
}