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

Cannot read property 'getItem' of null in Task.coffee #3

Open
thinq4yourself opened this issue Jan 14, 2015 · 1 comment
Open

Cannot read property 'getItem' of null in Task.coffee #3

thinq4yourself opened this issue Jan 14, 2015 · 1 comment
Labels

Comments

@thinq4yourself
Copy link
Member

Error being thrown at runtime:

TypeError: Cannot read property 'getItem' of null at Object.get (http://confide-object.codio.io:3000/scripts/Task/Task.js:9:39)`

Blamed File: https://github.com/BeardandFedora/HopStack/blob/master/app/scripts/Task/Task.coffee

    return {
        get: ->
            JSON.parse(localStorage.getItem(STORAGE_ID) || DEMO_TASKS )

        put: (tasks)->
            localStorage.setItem(STORAGE_ID, JSON.stringify(tasks))
    }
)

I've seen this before, but it was three or four months ago and I have to job my memory.

@thinq4yourself
Copy link
Member Author

Temporarily removed Task application (Task.coffee and module from app.coffee), REF 33261fc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant