question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Object reference not set to instance of object" error when creating a new text input

See original GitHub issue

Describe 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:

  1. Create a new echo bot
  2. Create a text input
  3. Set bot asks to “What is your name”?
  4. Set property to “dialog.name”
  5. Run the bot locally using the emulator
  6. 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

image

image

image

image

image

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
luhan2017commented, May 11, 2020

@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:

  1. After another turn is introduced, add a BreakLoop step, which will break this foreach loop and you will not get such error.
  2. save turn.Activity.membersAdded into another property which will not auto expire in another turn. and use that property for the loop.

I will update this thread when the bug is resolved. Thank you!!!

0reactions
mrivera-mscommented, Aug 5, 2020

Closed as No Fix.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found