Forum

    • Register
    • Login
    • Search
    • Categories

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

    Bug Reports
    1
    1
    48
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • marcLab
      marcLab last edited by marcLab

      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
      }
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      4
      Online

      1.1k
      Users

      6.8k
      Topics

      62.5k
      Posts