Skip to content

Commit

Permalink
Updated to .net 5, added NPE Check
Browse files Browse the repository at this point in the history
  • Loading branch information
srcmkr committed Jan 30, 2021
1 parent fdd50b3 commit 8709dd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vs
Terraform2AnsibleInventory/bin
Terraform2AnsibleInventory/obj
Terraform2AnsibleInventory/Properties
Terraform2AnsibleInventory/Properties
/Terraform2AnsibleInventory/Terraform2AnsibleInventory.csproj.user
2 changes: 1 addition & 1 deletion Terraform2AnsibleInventory/T2AI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class T2AI

public void PreflightCheck(string[] args)
{
if (string.IsNullOrEmpty(args[0]))
if (args.Length == 0 || string.IsNullOrEmpty(args[0]))
{
PreflightCheck(new string[] { tfstateFile });
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 8709dd2

Please sign in to comment.