     
     func bind(sticker: ACSticker!, clearPrev: Bool) {
         
-        
         var fileLocation: ACFileReference?
         fileLocation = sticker.getFileReference128()
+        
+        print("file name === \(fileLocation!.fileName)")
         
         let cached = checkCache(512, id: Int64(fileLocation!.getFileId()))
         if (cached != nil) {
             self.stickerImage.image = cached
             return
         }
-        
     
         self.callback = AAFileCallback(onDownloaded: { (reference) -> () in
             
-            
             let data = NSFileManager.defaultManager().contentsAtPath(CocoaFiles.pathFromDescriptor(reference))
-            let image = UIImage.sd_imageWithWebPData(data)
-            
+            
+            if (data == nil) {
+                return
+            }
+            
+            var image:UIImage!
+            image = UIImage.sd_imageWithWebPData(data)
             
             if (image == nil) {
                 return

//
//  AAStickersView.swift
//  ActorSDK
//
//  Created by kioshimafx on 1/10/16.
//  Copyright © 2016 Steve Kite. All rights reserved.
//

import UIKit
import SDWebImage

public class AAStickersViewCell : UICollectionViewCell {
    

        let layoutCV = UICollectionViewFlowLayout()
        layoutCV.scrollDirection = .Vertical
        layoutCV.itemSize = CGSizeMake(widthHightItem, widthHightItem)
        layoutCV.sectionInset = UIEdgeInsets(top: 5, left: 0, bottom: 5, right: 0)
        
        // init collection view
        self.collectionView = UICollectionView(frame: frame, collectionViewLayout: layoutCV)
