Skip to content

Commit

Permalink
Merge pull request Aircoookie#4271 from Aircoookie/4269-crashes-when-…
Browse files Browse the repository at this point in the history
…using-http-api-within-mqtt

Fix for Aircoookie#4269
  • Loading branch information
willmmiles authored Nov 12, 2024
2 parents 271a07a + 223b97b commit ba01cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ bool handleSet(AsyncWebServerRequest *request, const String& req, bool apply)

// internal call, does not send XML response
pos = req.indexOf(F("IN"));
if (pos < 1) {
if ((request != nullptr) && (pos < 1)) {
auto response = request->beginResponseStream("text/xml");
XML_response(*response);
request->send(response);
Expand Down

0 comments on commit ba01cb8

Please sign in to comment.