mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
ADT-constructor generation crashed in .NET/Java when no (= default) fields are given (#6287)
This commit is contained in:
parent
6ba9ada1e2
commit
56fb161532
2 changed files with 2 additions and 2 deletions
|
@ -124,7 +124,7 @@ namespace Microsoft.Z3
|
|||
/// </summary>
|
||||
internal Symbol[] MkSymbols(string[] names)
|
||||
{
|
||||
if (names == null) return null;
|
||||
if (names == null) return new Symbol[0];
|
||||
Symbol[] result = new Symbol[names.Length];
|
||||
for (int i = 0; i < names.Length; ++i) result[i] = MkSymbol(names[i]);
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue