better explanation of how session can be null

This commit is contained in:
Randy Edmunds committed 2013-09-12 15:50:01 -07:00
1 parent 3ea830d5ba
commit 0b4499c819
1 file changed
+2 -1
@@ -327,7 +327,8 @@ define(function (require, exports, module) {
*/
function getSessionHints(query, cursor, type, token, $deferredHints) {
// We're getting here with a null session object in units tests
// If editor is closed before deferred hints are resolved, then the session
// object may have already been released. No need to do anything.
if (!session) {
return null;
}