Results 1 to 4 of 4

Thread: 6.5.2 Removing an item from Ext.carousel.Carousel throws exception

    You found a bug! We've classified it as EXTJS-27600 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    30

    Default 6.5.2 Removing an item from Ext.carousel.Carousel throws exception

    6.5.2 Modern

    Removing an item from Ext.carousel.Carousel throws uncaught null pointer exception.

    https://fiddle.sencha.com/#view/editor&fiddle/29cc

    Uncaught TypeError: Cannot set property 'ownerCmp' of null
    at constructor.applyComponent (VM255 ext-modern-all-debug.js:96987)
    at constructor.setter [as setComponent] (VM255 ext-modern-all-debug.js:7268)
    at constructor.onItemRemove (VM255 ext-modern-all-debug.js:101618)
    at constructor.doRemove (VM255 ext-modern-all-debug.js:59233)
    at VM255 ext-modern-all-debug.js:14074
    at constructor.fire (VM255 ext-modern-all-debug.js:13890)
    at constructor.doFireEvent (VM255 ext-modern-all-debug.js:14600)
    at constructor.doFireEvent (VM255 ext-modern-all-debug.js:32588)
    at constructor.prototype.doFireEvent (VM255 ext-modern-all-debug.js:40578)
    at constructor.fireEventArgs (VM255 ext-modern-all-debug.js:14506)

    I put an override on Ext.Decorator that checks the 'result' for null before referencing it and this fixed it, but I'm not sure if the null getting in here is the result of a bug upstream from this code.

    Code:
        applyComponent: function(config) {
            var result = Ext.factory(config);
            if (result) {
                result.ownerCmp = this;
            }
            return result;
        },

  2. #2

    Default

    This fix also works in version 6.6.0.

    Thank you jholloway7

  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    542

    Default

    Hello, hope you are doing well.


    Thank you for bringing this to our notice., I will register this in our bug tracker. The reference number will be attached here for you to track the progress of the issue.


    Regards,
    Kumar
    Sencha Support.

  4. #4
    Sencha Staff
    Join Date
    Sep 2017
    Posts
    126

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 3
    Last Post: 13 Oct 2016, 7:25 PM
  2. Recreated carousel item doesn't get added to carousel: Two-year old bug
    By SergioPrado in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 17 Apr 2015, 10:48 AM
  3. Replies: 1
    Last Post: 27 Mar 2013, 11:33 PM
  4. Replies: 3
    Last Post: 8 Nov 2011, 11:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •