Skip to content

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

Description

@thinq4yourself

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions