diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 0abcb8113ab9ea488c31b1aae09a49ea778d4375..08f5cbd143b2c5c5db4cf0d0ca142e3b7118a41b 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -15,7 +15,7 @@
 bl_info = {
     'name': 'glTF 2.0 format',
     'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
-    "version": (1, 7, 22),
+    "version": (1, 7, 23),
     'blender': (2, 91, 0),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
index 6c184198796654c9c5bf771a5b8dfb120f8cb89f..3046a1cef0eb242590d25a3639b64473e23aa5c6 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
@@ -118,7 +118,8 @@ def gather_animation_channels(blender_action: bpy.types.Action,
                 blender_action.name,
                 obj,
                 False)
-            channels.append(channel)
+            if channel is not None:
+                channels.append(channel)
 
     else:
         for channel_group in __get_channel_groups(blender_action, blender_object, export_settings):
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
index 06e6860c44073bfebc2664d5213b89c4423730b3..819c8085144dc1823727fbd57fff1b9542c7c667 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
@@ -121,12 +121,12 @@ def __gather_animation(blender_action: bpy.types.Action,
         print_console("WARNING", "Animation '{}' could not be exported. Cause: {}".format(name, error))
         return None
 
-    # To allow reuse of samplers in one animation,
-    __link_samplers(animation, export_settings)
-
     if not animation.channels:
         return None
 
+    # To allow reuse of samplers in one animation,
+    __link_samplers(animation, export_settings)
+
     export_user_extensions('gather_animation_hook', export_settings, animation, blender_action, blender_object)
 
     return animation