diff --git a/bot-context/pom.xml b/bot-context/pom.xml index 526502d..92c66c8 100644 --- a/bot-context/pom.xml +++ b/bot-context/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.godfather godfather-bot - 0.0.2 + 0.0.3-SNAPSHOT bot-context diff --git a/bot-core/pom.xml b/bot-core/pom.xml index 0057aa4..8837825 100644 --- a/bot-core/pom.xml +++ b/bot-core/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.godfather godfather-bot - 0.0.2 + 0.0.3-SNAPSHOT bot-core diff --git a/bot-core/src/main/java/dev/struchkov/godfather/core/service/action/AnswerSaveAction.java b/bot-core/src/main/java/dev/struchkov/godfather/core/service/action/AnswerSaveAction.java index ba3c2b3..4f8aaa1 100644 --- a/bot-core/src/main/java/dev/struchkov/godfather/core/service/action/AnswerSaveAction.java +++ b/bot-core/src/main/java/dev/struchkov/godfather/core/service/action/AnswerSaveAction.java @@ -28,9 +28,11 @@ public class AnswerSaveAction implements ActionUnit, Message> { } PreservableData preservableData = answerSave.getPreservableData(); - D data = preservableData.getData(mail); - if (data != null) { - preservable.save(personId, answerSave.getKey(), data); + if (preservableData != null) { + D data = preservableData.getData(mail); + if (data != null) { + preservable.save(personId, answerSave.getKey(), data); + } } preservable.push(personId, answerSave.getPusher()); diff --git a/pom.xml b/pom.xml index 811543a..2ec7c65 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.struchkov.godfather godfather-bot - 0.0.2 + 0.0.3-SNAPSHOT pom @@ -31,8 +31,8 @@ UTF-8 UTF-8 - 0.0.2 - 0.0.2 + 0.0.3-SNAPSHOT + 0.0.3-SNAPSHOT 1.9.4-RELEASE 2.8.9