"Object reference not set to instance of object" error when creating a new text input
See original GitHub issueDescribe the bug
“Object reference not set to instance of object” error shown in chat window in bot framework emulator when a input is added to a bot - text inputs on sample bots work without this error
Version
a7d013b
Browser
I’m using “BotFramework-Composer-0.0.1-windows-setup.exe” windows desktop app
- Chrome
- Safari
- Firefox
- Edge
OS
- macOS
- Windows
- Ubuntu
To Reproduce
Steps to reproduce the behavior:
- Create a new echo bot
- Create a text input
- Set bot asks to “What is your name”?
- Set property to “dialog.name”
- Run the bot locally using the emulator
- The bot will work as expected but following the user entering a response to “what is your name”? it will return “object reference not set to instance of object”
The issue also occurs for other input types - tested on date and multiple choice
This issue can also be replicated by creating a sample bot “AskingQuestionsSample” and adding a new text input. The questions that already exist in the bot created from the template will work as expected - but adding a new text input will trigger the error to happen.
Expected behavior
The expected behaviour is that the error will not occur
Screenshots
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Object Reference Not Set to an Instance of an Object
This exception is thrown when you try to access a member—for instance, a method or a property—on a variable that currently holds a...
Read more >Object Reference Not Set To Instance Of Object When ...
First I get the error stating that the object reference is not set to an instance of an object. Or second, I am...
Read more >"Type Into 'INPUT 11:2545;a': Object reference not set to an ...
This error means that some variable has no value assigned. Hi, You have used specific content that means you are consuming queue items...
Read more >Object reference not set to an instance of an object
Hello, i get everytime the NullReferenceException in Unity by clicking a button to find out the Inputvalue and output it in a Text...
Read more >Object reference not set to an instance of an obj...
I'm working in AGOL, trying to use the relatively new "Append Data to Layer" tool under the "Update Data" section in the Overview...
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
@timoconnellaus , thanks for reporting this issue, this is a bug. In the conversation update trigger we had a Foreach loop on turn.Activity.membersAdded. adding TextInput or whatever action that introduces another turn will refresh the turn memory and break this loop. To work around this bug, you can update the logic in two ways:
I will update this thread when the bug is resolved. Thank you!!!
Closed as No Fix.