mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-22 17:04:23 +01:00
Bug fixed in UART: empty command
This commit is contained in:
@@ -105,6 +105,8 @@ public class UARTControlFragment extends Fragment implements GridView.OnItemClic
|
|||||||
final Command command = (Command)mAdapter.getItem(position);
|
final Command command = (Command)mAdapter.getItem(position);
|
||||||
final Command.Eol eol = command.getEol();
|
final Command.Eol eol = command.getEol();
|
||||||
String text = command.getCommand();
|
String text = command.getCommand();
|
||||||
|
if (text == null)
|
||||||
|
text = "";
|
||||||
switch (eol) {
|
switch (eol) {
|
||||||
case CR_LF:
|
case CR_LF:
|
||||||
text = text.replaceAll("\n", "\r\n");
|
text = text.replaceAll("\n", "\r\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user