Skip to content

Commit 85c0bd0

Browse files
Merge branch 'master' of github.com:Alexander-Barth/NCDatasets.jl
2 parents cad4fc2 + 78d3aa1 commit 85c0bd0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/NCDatasets.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,9 +1419,14 @@ function nomissing(da::Array{Union{T,Missing},N}) where {T,N}
14191419
end
14201420

14211421
if VERSION >= v"0.7.0-beta.0"
1422-
return replace(da, missing => da[1])
1422+
if isempty(da)
1423+
return Array{T,N}([])
1424+
else
1425+
return replace(da, missing => da[1])
1426+
end
14231427
else
1424-
return Array{T}(da)
1428+
# Illegal instruction (core dumped) in Julia 1.0.1
1429+
return Array{T,N}(da)
14251430
end
14261431
end
14271432

0 commit comments

Comments
 (0)