The API controller currently throws the following exception when a non-existent entity ID is requested (deleted from recycle bin), e.g. /umbraco/backoffice/Meganav/MeganavEntityApi/GetById?id=0: System.InvalidOperationException: A null value was returned where an instance of HttpResponseMessage was expected..
The API controller currently throws the following exception when a non-existent entity ID is requested (deleted from recycle bin), e.g.
/umbraco/backoffice/Meganav/MeganavEntityApi/GetById?id=0
:System.InvalidOperationException: A null value was returned where an instance of HttpResponseMessage was expected.
.This could be fixed by changing the following line: https://github.com/thecogworks/meganav/blob/efae678daa1c7898f67926234ac7419a69a494dc/src/Cogworks.Meganav/Web/Controllers/API/MeganavApiController.cs#L28 to
The AngularJS controller could even be updated to report these items (like with unpublished items) or even automatically remove them...