[wiki] [sites] transfer: Fix null pointer exception when no focused client || Miles Alan

From: <git_AT_suckless.org>
Date: Wed, 14 Oct 2020 04:10:15 +0200

commit 479e1366b37c7caf4a964da7c78c7d970fe9c2a8
Author: Miles Alan <m_AT_milesalan.com>
Date: Sat Sep 26 09:04:53 2020 -0500

    transfer: Fix null pointer exception when no focused client

diff --git a/dwm.suckless.org/patches/transfer/dwm-transfer-6.2.diff b/dwm.suckless.org/patches/transfer/dwm-transfer-6.2.diff
index 5d756855..acad0252 100644
--- a/dwm.suckless.org/patches/transfer/dwm-transfer-6.2.diff
+++ b/dwm.suckless.org/patches/transfer/dwm-transfer-6.2.diff
_AT_@ -52,7 +52,7 @@ index 4465af1..ada794b 100644
 + stail = c;
 + i++;
 + }
-+ if (selmon->sel->isfloating || i == 0) {
++ if (!selmon->sel || selmon->sel->isfloating || i == 0) {
 + return;
 + } else if (transfertostack) {
 + selmon->nmaster = MIN(i, selmon->nmaster) - 1;
diff --git a/dwm.suckless.org/patches/transfer/index.md b/dwm.suckless.org/patches/transfer/index.md
index f9ca1f84..97db2349 100644
--- a/dwm.suckless.org/patches/transfer/index.md
+++ b/dwm.suckless.org/patches/transfer/index.md
_AT_@ -18,7 +18,7 @@ effectively swapping the master and the stack. The new nmaster is adjusted
 to be the old number of clients in the stack.
 
 ## Download
-* [dwm-transfer-6.2.diff](dwm-transfer-6.2.diff) (01/25/2020)
+* [dwm-transfer-6.2.diff](dwm-transfer-6.2.diff) (09/26/2020)
 * [dwm-transferall-6.2.diff](dwm-transferall-6.2.diff) (02/01/2020)
 
 ## Author
Received on Wed Oct 14 2020 - 04:10:15 CEST

This archive was generated by hypermail 2.3.0 : Wed Oct 14 2020 - 04:12:46 CEST