修改:ma为null导致的bug
This commit is contained in:
parent
ce176c1035
commit
08068ebf21
@ -32,6 +32,8 @@ public class OnboardAtpApiServiceImpl implements OnboardAtpApiService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateMA4CBTC(VirtualRealityTrain train, MovementAuthority ma) {
|
public void updateMA4CBTC(VirtualRealityTrain train, MovementAuthority ma) {
|
||||||
|
if (ma == null)
|
||||||
|
return;
|
||||||
if (!train.isAtpOn()) {
|
if (!train.isAtpOn()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -48,6 +50,8 @@ public class OnboardAtpApiServiceImpl implements OnboardAtpApiService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateMA4ITC(VirtualRealityTrain train, MovementAuthority ma) {
|
public void updateMA4ITC(VirtualRealityTrain train, MovementAuthority ma) {
|
||||||
|
if (ma == null)
|
||||||
|
return;
|
||||||
if (!train.isAtpOn()) {
|
if (!train.isAtpOn()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user