diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0faf2786..2bb6f6e5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -327,7 +327,7 @@ jobs: ls -al $HOME/extern/* - name: Install GNUStep GUI - if: matrix.target == 'x86_64-unknown-linux-gnu' && steps.extern-cache.outputs.cache-hit != 'true' + if: contains(matrix.runtime, 'gnustep') && matrix.target == 'x86_64-unknown-linux-gnu' && steps.extern-cache.outputs.cache-hit != 'true' run: | wget https://github.com/gnustep/libs-gui/archive/refs/tags/gui-0_29_0.tar.gz tar -xzf gui-0_29_0.tar.gz diff --git a/crates/objc2/src/runtime.rs b/crates/objc2/src/runtime.rs index c75b7103a..82bf5de66 100644 --- a/crates/objc2/src/runtime.rs +++ b/crates/objc2/src/runtime.rs @@ -706,6 +706,9 @@ impl Protocol { &mut count, ) }; + if descriptions.is_null() { + return Vec::new(); + } let descriptions = unsafe { Malloc::from_array(descriptions, count as usize) }; descriptions .iter()