修改:ma为null导致的bug
This commit is contained in:
parent
ce176c1035
commit
08068ebf21
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user