Fixed crashing due to index out of bounds error
This commit is contained in:
parent
815c65650a
commit
e2c2a9670f
2 changed files with 3 additions and 3 deletions
|
@ -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",
|
||||||
|
|
|
@ -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' ">
|
||||||
|
|
Reference in a new issue