ed->editor.document.selections.values.elements.data was nullptr.



  • Just wanted to let you know 😛

    Hello, I'm currently working on the latest develop branch. Sometimes I get this crash while scripting.

    ed->editor.document.selections.values.elements.data was nullptr.
    

    line 1760 ->

    return CodeDocument::Position(getDoc(c), pos.x, pos.y);
    
    juce::CodeDocument::Position CommonEditorFunctions::getCaretPos(Component* c)
    {
    	auto ed = as(c);
    
    	// this must always be true...
    	jassert(ed != nullptr);
    
    #if HISE_USE_NEW_CODE_EDITOR
    	auto pos = ed->editor.getTextDocument().getSelection(0).head;
    	return CodeDocument::Position(getDoc(c), pos.x, pos.y);
    #else
    	return ed->getCaretPos();
    #endif
    }
    
    

Log in to reply
 

18
Online

1.6k
Users

4.6k
Topics

42.5k
Posts