title: Swiper.js - Uncaught TypeError: Cannot read property 'params' of null
body: <p>I'm using swiper.js and once swiper1.destroy(); run, rebuild, slide to a certain slide and click.</p>
  
  <p>I got error of  <strong>swiper.js:438 Uncaught TypeError: Cannot read property 'params' of null</strong></p>
  
  <p>Here's the code. I appreciate all helps. Thank you very much.</p>
  
  <pre><code>$('.call').click(function(e){
  e.preventDefault()
  
  $("#menu").addClass("hide");
  $("#slider").removeClass("hide");
  
  selector.push("address");
  
  var swiper1 = new Swiper('.swiper1', {
      pagination: '.one',
      paginationClickable: true,
      hashnav: true,
      loop:true,
      initialSlide:0
  });
  
  getLocation();
  
  $('.noclick').click(function(e){
      e.preventDefault()
      swiper1.unlockSwipes(); // &lt;-- This seems to be causing the problem
      swiper1.slidePrev(); // &lt;-- This seems to be causing the problem
      player.seekTo(0);
  })
  
  $('.yes').click(function(e){
      e.preventDefault()
      swiper1.unlockSwipes(); // &lt;-- This seems to be causing the problem
      swiper1.slideNext(); // &lt;-- This seems to be causing the problem
  })
  
  $('.overlay').click(function(e){
      swiper1.unlockSwipes();
      console.log("overlay");
      e.preventDefault()
      $("#menu").removeClass("hide");
      $("#slider").addClass("hide");
      swiper1.destroy();
  })
  
  swiper1.on('slideChangeStart', function () {
      var dataindex = $(".swiper-slide-active").data('index');
      console.log(dataindex);
  
      if(dataindex == 8){
          onPlayerReady();
          swiper1.lockSwipes();
          setTimeout(function(){
              //var state = player.getPlayerState();
              //console.log(state);
              //if (state == 0){
                  //alert("This should work");
                  swiper1.unlockSwipes();
                  swiper1.slideTo(9);
              //}
          },4000);
  
      }else if(dataindex == 9) {  
          swiper1.lockSwipes();
      }else if(dataindex == 10){
          swiper1.lockSwipes();
      }else{
          stopVideo();
      }
  });
  
  })
  </code></pre>