Null input binding throws an exception
See original GitHub issueWhen attempting to use an input binding to something like CosmosDB, if the input binding is empty (e.g. referencing an ID that isn’t there), the function throws right away (with an error about not able to convert NoneType
to func.Document
or str
or whatever). However, with other languages like JavaScript, the function still executes, the input binding is just null. This prevents doing things like gracefully handling a null input binding and returning an error.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Null Reference Exception when attempting to bind ...
Actually that kind of cast throws an exception. You would need var ddlEligibility = (fvSubscriber.FindControl("ddlEligibility")) as DropDownList ...
Read more >Binding to property Item throws a NullReferenceException ...
Net 4.5 we get a NullReferenceException when we bind to a property ... IndexerName for checking (Binding.IndexerName has value "Item[]" ).
Read more >Binding nullable int to input causes null reference exception
If I have a nullable string in a database and I want to bind using blazor I don't like having to do some...
Read more >Binding to a null string Value throws NullReferenceException
I stumbled over an exception when one of the items in the dropdownlist ("Data" property) has Null in the property specified as "TextField"...
Read more >Understanding null safety - Dart programming language
If you run this Dart program without null safety, it throws a NoSuchMethodError exception on the call to .length . The null value...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We decode the data from Cosmos but right now we aren’t checking for the case where the data in
None
: https://github.com/Azure/azure-functions-python-library/blob/edce123f18b2b45d0d18c0bccd6e934290af0dee/azure/functions/cosmosdb.py#L24. Will add a fix shortly.The fix has been merged to the python library, it will go with the next 1.0.5 release.