Bug fixing

This commit is contained in:
Alexei Anoshenko 2026-10-31 10:39:32 +03:00
parent be9dd57806
commit 608c6174dc
2 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ func (app *application) socketReader(bridge *wsBridge) {
}
default:
if !session.handleAnswer(command, obj) {
if session != nil && !session.handleAnswer(command, obj) {
events <- obj
}
}

View File

@ -250,7 +250,7 @@ func (object *dataObject) RemoveProperty(tag string) DataValue {
}
func (object *dataObject) PropertyText(tag string, tags ...string) (string, bool) {
if node := object.Property(tag, tag); node != nil && node.Type() == TextDataValue {
if node := object.Property(tag); node != nil && node.Type() == TextDataValue {
return node.String(), true
}
return "", false