Fixed crash if empty fields

Addentrie
This commit is contained in:
Stefan
2019-12-09 14:04:58 +01:00
parent 45c0ad6fa1
commit 85c3ad9d63
10 changed files with 1 additions and 0 deletions
@@ -20,6 +20,7 @@ namespace Superbuchhaltung
private void Bestätigungsbutton_Click(object sender, EventArgs e)
{
if (Kontonummerbox.Text.Length == 0 || Kontonamebox.Text.Length == 0) goto goback;
string[] write = { Kontonummerbox.Text + ";" +Kontonamebox.Text + '\n'};
if (!Directory.Exists(@"C:\Users\Public\TestFolder\")) {
Directory.CreateDirectory(@"C:\Users\Public\TestFolder");