twolfson / google-music.js

Browser-side JS library for controlling Google Music
The Unlicense
47 stars 6 forks source link

Undefined and null are not objects #12

Closed jacobwgillespie closed 8 years ago

jacobwgillespie commented 8 years ago

I'm seeing the following errors with google-music.js - they appear to be happening each time a song changes:

screenshot 2015-12-04 13 33 04

Line numbers are messed up as the file gets minifed by the WebView injection, so line 209 is https://github.com/twolfson/google-music.js/blob/cb2e3f29243913d4240381fcb982471cff74c398/dist/google-music.js#L240 and 277 is https://github.com/twolfson/google-music.js/blob/cb2e3f29243913d4240381fcb982471cff74c398/dist/google-music.js#L240

twolfson commented 8 years ago

About to get back from vacation and deal with a large backlog. I will take a look by the end of next weekend. I think I have seen something similar before but google-music-electron was still working.

Note to self: It might be a good idea to add Sentry, Errorception, or any of the other browser-side error trackers for errors that occur in google-music.js for google-music-electron.

twolfson commented 8 years ago

Alright, took a stab at this and resolved the issues. The test suite needed a little TLC as well so that was addressed as well. Everything has been published in google-music.js@3.3.0.

A gist of the changes:

jacobwgillespie commented 8 years ago

Nice, thanks! :+1: