javascript – Cannot read property 'title' of null-ThrowExceptions

Exception or error:

showing the error.what to do?though the poll is not null.there is a value


18|                 <div class="card card-body">

19| Title: <%= poll.title %>

20|                     <p>Description: <%= poll.description %> </p>

21|                     <div class="my-3">

22|                         Result

Cannot read property ‘title’ of null

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *