Skip to content

Commit 06e4bc4

Browse files
committed
Settings bug fix
Should fix #349
1 parent 8c5cc48 commit 06e4bc4

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ about: Create a report to help us improve
77
**Describe the bug**
88
A clear and concise description of what the bug is.
99

10-
**To Reproduce**
11-
Steps to reproduce the behavior
12-
1310
**Expected behavior**
1411
A clear and concise description of what you expected to happen.
1512

13+
**To Reproduce**
14+
Steps to reproduce the behavior (if possible)
15+
1616
**Version**
17-
Which commit did you build or download?
17+
Which commit did you build or download? (mono TS3AudiBot.exe -V or !version in chat)
18+
19+
**Platform**
20+
Which platform(-version) are you running on? (ubuntu 16.04, arch, windows,...)
21+
Which runtime(-version) are you using? (mono: mono -V, dotnet: dotnet --info)
1822

1923
**Log**
2024
```

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ Why OSL-3.0:
104104
- OSL allows you to link to our libraries without needing to disclose your own project, which might be useful if you want to use the TS3Client as a library.
105105
- If you create plugins you do not have to make them public like in GPL. (Although we would be happier if you shared them :)
106106
- With OSL we want to allow you providing the TS3AB as a service (even commercially). We do not want the software to be sold but the service. We want this software to be free for everyone.
107+
- TL; DR? https://tldrlegal.com/license/open-software-licence-3.0
107108

108109
---
109110
[![forthebadge](http://forthebadge.com/images/badges/60-percent-of-the-time-works-every-time.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/built-by-developers.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/contains-cat-gifs.svg)](http://forthebadge.com) [![forthebadge](http://forthebadge.com/images/badges/made-with-c-sharp.svg)](http://forthebadge.com)

TS3AudioBot/BotManager.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ private Bot GetBotSave(int id)
178178
// !! This method must be called with a lock on lockObj
179179
private Bot GetBotSave(string name)
180180
{
181+
if (name == null)
182+
throw new ArgumentNullException(nameof(name));
181183
if (activeBots == null)
182184
return null;
183-
return activeBots.Find(x => x.Name == name);
185+
return activeBots.Find(x => x?.Name == name);
184186
}
185187

186188
public BotLock GetBotLock(int id)

0 commit comments

Comments
 (0)