Archived
0
0
Fork 0

Fixed crashing due to index out of bounds error

This commit is contained in:
Daryl Ronningen 2021-12-14 19:04:22 -07:00
parent 815c65650a
commit e2c2a9670f
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
2 changed files with 3 additions and 3 deletions

View file

@ -208,7 +208,7 @@ namespace chord
chatBoxList.OpenSelectedItem += args => chatBoxList.OpenSelectedItem += args =>
{ {
if (currentChannelMessages[args.Item].Split(" | ")[1].Contains("http")) if (currentChannelMessages[args.Item].Split(" | ")[1].Contains("http"))
for (var i = 0; i <= currentChannelMessages[args.Item].Split(" | ")[1].Split(" ").Count(); i++) for (var i = 0; i < currentChannelMessages[args.Item].Split(" | ")[1].Split(" ").Count(); i++)
if (currentChannelMessages[args.Item].Split(" | ")[1].Split(" ")[i].Contains("http")) if (currentChannelMessages[args.Item].Split(" | ")[1].Split(" ")[i].Contains("http"))
{ {
var procStartInfo = new ProcessStartInfo("/bin/sh", var procStartInfo = new ProcessStartInfo("/bin/sh",

View file

@ -7,8 +7,8 @@
<Configurations>Release;Debug</Configurations> <Configurations>Release;Debug</Configurations>
<Platforms>x64</Platforms> <Platforms>x64</Platforms>
<IsPackable>false</IsPackable> <IsPackable>false</IsPackable>
<AssemblyVersion>0.0.1.0</AssemblyVersion> <AssemblyVersion>0.0.2.0</AssemblyVersion>
<FileVersion>0.0.1.0</FileVersion> <FileVersion>0.0.2.0</FileVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">