Error: Call to a member function addError() on null in Drupal\slack\Slack->sendMessage()
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | interdiff-4-8.txt | 480 bytes | tr |
| #8 | 3110719-8-messenger-not-initialized.patch | 1.45 KB | tr |
Error: Call to a member function addError() on null in Drupal\slack\Slack->sendMessage()
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | interdiff-4-8.txt | 480 bytes | tr |
| #8 | 3110719-8-messenger-not-initialized.patch | 1.45 KB | tr |
Comments
Comment #2
binnythomas commentedComment #3
binnythomas commentedComment #4
binnythomas commentedAttaching patch with a fix.
Comment #5
binnythomas commentedComment #6
binnythomas commentedComment #7
tr commentedThis error only happens if you have not set the slack_webhook_url configuration variable and are trying to send a slack message using this module's service.
This error does not happen with the test form because the test form checks the configuration variable and does not try to send the message if the variable is empty.
The patch in #4 still applies and fixes the error. RTBC.
Comment #8
tr commentedFixed a trivial coding standards error.
Comment #10
adci_contributor commented