mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +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
|
@ -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;
|
||||
|
|
|
@ -110,7 +110,7 @@ public class Context implements AutoCloseable {
|
|||
Symbol[] mkSymbols(String[] names)
|
||||
{
|
||||
if (names == null)
|
||||
return null;
|
||||
return new Symbol[0];
|
||||
Symbol[] result = new Symbol[names.length];
|
||||
for (int i = 0; i < names.length; ++i)
|
||||
result[i] = mkSymbol(names[i]);
|
||||
|
|
Loading…
Reference in a new issue