mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
fix exceptions during unit tests
This commit is contained in:
1 parent
0cb158adb0
commit
3ea830d5ba
1 file changed
+5
@@ -327,6 +327,11 @@ 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 (!session) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var hintResults = session.getHints(query, getStringMatcher());
|
||||
if (hintResults.needGuesses) {
|
||||
var guessesResponse = ScopeManager.requestGuesses(session,
|
||||
|
||||
Reference in new issue
Block a user