730441-3.xul 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0"?>
  2. <!--
  3. ###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().: 'mRawPtr != 0', file ../../../../dist/include/nsCOMPtr.h, line 796
  4. Program received signal SIGSEGV, Segmentation fault.
  5. 0xb6b7463a in nsTreeContentView::SetTree (this=0xb0ba2510, aTree=0xaaecece0) at layout/xul/base/src/tree/src/nsTreeContentView.cpp:571
  6. 571 boxObject->GetElement(getter_AddRefs(element));
  7. (gdb) bt 3
  8. #0 0xb6b7463a in nsTreeContentView::SetTree (this=0xb0ba2510, aTree=0xaaecece0) at layout/xul/base/src/tree/src/nsTreeContentView.cpp:571
  9. #1 0xb736c76f in NS_InvokeByIndex_P () at xpcom/reflect/xptcall/md/unix/xptcinvoke_gcc_x86_unix.cpp:69
  10. #2 0xb6171901 in XPCWrappedNative::CallMethod (ccx=..., mode=XPCWrappedNative::CALL_METHOD)
  11. at js/src/xpconnect/src/xpcwrappednative.cpp:2722
  12. (More stack frames follow...)
  13. (gdb) list 566
  14. 561 nsTreeContentView::SetTree(nsITreeBoxObject* aTree)
  15. 562 {
  16. 563 ClearRows();
  17. 564
  18. 565 mBoxObject = aTree;
  19. 566
  20. 567 if (aTree && !mRoot) {
  21. 568 // Get our root element
  22. 569 nsCOMPtr<nsIBoxObject> boxObject = do_QueryInterface(mBoxObject);
  23. 570 nsCOMPtr<nsIDOMElement> element;
  24. 571 boxObject->GetElement(getter_AddRefs(element));
  25. (gdb) p boxObject
  26. $16 = {mRawPtr = 0x0}
  27. |aTree| does not implement |nsIBoxObject|, so |do_QueryInterface(mBoxObject)|
  28. returns null. Then we have |null->GetElement()|.
  29. -->
  30. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  31. onload="document.getElementById('tree').view.setTree({});">
  32. <tree id="tree">
  33. <treechildren/>
  34. </tree>
  35. </window>