Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add null check #389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

papriwalprateek
Copy link

The reason for adding this null check is that sometimes, for eg. in case of building yuidoc for https://github.com/photonstorm/phaser, when you try to toggle from 'classes' panel to 'modules' panel, the following error is being thrown -:

Uncaught TypeError: Cannot read property 'toLowerCase' of null.

For catching this error, I think adding a null check would be a good solution. Although I think, there might be some other reason which is leading to the error in the above case. Please check this. For your reference, version of my yuidoc is 0.9.0 .

The reason for adding this null check is that sometimes, for eg. in case of building yuidoc for https://github.com/photonstorm/phaser, when you try to toggle from 'classes' panel to 'modules' panel, the following error is being thrown -:

```Uncaught TypeError: Cannot read property 'toLowerCase' of null```.

For catching this error, I think adding a null check would be a good solution. Although I think, there might be some other reason which is leading to the error in the above case. Please check this. For your reference, version of my yuidoc is 0.9.0 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant