HISE Logo Forum
    • Categories
    • Register
    • Login

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

    Scheduled Pinned Locked Moved Bug Reports
    1 Posts 1 Posters 174 Views
    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.
    • marcLabM
      marcLab
      last edited by marcLab

      Just wanted to let you know :p

      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

      16

      Online

      1.7k

      Users

      11.8k

      Topics

      102.7k

      Posts