highslide-software/highcharts.com — pull request #701 by egguy (2012-01-13 17:32:19+00:00)
Title: [Patch] Can't use Chart.get if a serie wasn't visible first

If you add a series with *visible: false* and you do a *Chart.get(not_existing_id)* you will get an exception.

ex: http://jsfiddle.net/5eFpg/3/

The problem is located in the *Chart.get* function who search for points in a series with an matching *id*. If the series set *visible: false* when it was added there's no *points*.

The for loop who search for points with matching id didn't check if it has been initialized.

This patch check if there's no point in the serie. If it's the case it skip to the next serie.