MercuryTrade
MercuryTrade copied to clipboard
NullPointerError in TradeOutMessagesInterceptor
It appears that in some cases in Legion, MessageParser.parse is returning null but that's still getting passed to the interceptor to try to do something with. Full error below:
2019-06-29 18:34:34.376 [Thread-3] ERROR ErrorHandler - java.lang.NullPointerException
at com.mercury.platform.core.utils.interceptor.TradeOutMessagesInterceptor$EngOutLocalizationMatcher.getDescriptor(TradeOutMessagesInterceptor.java:90)
at com.mercury.platform.core.utils.interceptor.TradeOutMessagesInterceptor$LocalizationMatcher.processMessage(TradeOutMessagesInterceptor.java:66)
at com.mercury.platform.core.utils.interceptor.TradeOutMessagesInterceptor.process(TradeOutMessagesInterceptor.java:39)
at com.mercury.platform.core.utils.interceptor.MessageInterceptor.match(MessageInterceptor.java:17)
at com.mercury.platform.core.utils.MessageFileHandler.lambda$null$2(MessageFileHandler.java:86)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at com.mercury.platform.core.utils.MessageFileHandler.lambda$parse$3(MessageFileHandler.java:85)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at com.mercury.platform.core.utils.MessageFileHandler.parse(MessageFileHandler.java:84)
at com.mercury.platform.core.utils.FileMonitor$1.onFileChange(FileMonitor.java:43)
at org.apache.commons.io.monitor.FileAlterationObserver.doMatch(FileAlterationObserver.java:410)
at org.apache.commons.io.monitor.FileAlterationObserver.checkAndNotify(FileAlterationObserver.java:333)
at org.apache.commons.io.monitor.FileAlterationObserver.checkAndNotify(FileAlterationObserver.java:303)
at org.apache.commons.io.monitor.FileAlterationMonitor.run(FileAlterationMonitor.java:182)
at java.base/java.lang.Thread.run(Thread.java:835)