# Blueprint MID crashes if Count is -1

**URL:** <https://forums.unrealengine.com/t/blueprint-mid-crashes-if-count-is-1/380418>\
**Category:** Blueprint\
**Tags:** unreal-engine, crash, Blueprint, question\
**Created:** [December 29, 2016, 6:35am UTC](https://forums.unrealengine.com/t/blueprint-mid-crashes-if-count-is-1/380418 "2016-12-29T06:35:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [December 29, 2016, 6:35am UTC](https://forums.unrealengine.com/t/blueprint-mid-crashes-if-count-is-1/380418/1 "2016-12-29T06:35:34Z")

</div>

Hello,

The blueprint node MID will crash the game if the count is -1

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [December 29, 2016, 8:17pm UTC](https://forums.unrealengine.com/t/blueprint-mid-crashes-if-count-is-1/380418/2 "2016-12-29T20:17:21Z")

</div>

Hey Genova,

I’ve reproduced your crash and entered a bug report, which you can track here: [Unreal Engine Issues and Bug Tracker (UE-40081)](https://issues.unrealengine.com/issue/UE-40081)

This issue is likely by design due to the assertion located in the Mid function in UnrealString.h, which checks to see if the count is \< 0; however, I have entered the report to include an error message rather than a hard editor crash.

Thanks for your report.

---

<div class="post-metadata">

**Author:** ![Genova](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Genova](https://forums.unrealengine.com/u/Genova)\
**Post date:** [December 30, 2016, 1:13am UTC](https://forums.unrealengine.com/t/blueprint-mid-crashes-if-count-is-1/380418/3 "2016-12-30T01:13:41Z")

</div>

Thanks,

it wasn’t crashing on 4.10 by the way.

What I expect is to have the node output a null string.
